From ec3a9ec79ee35bc9ac4aff470181d2a83ff000ba Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 24 Aug 2006 18:41:58 +0000 Subject: [PATCH] added sanity check for when the table has been altered git-svn-id: svn://svn.open-ils.org/ILS/trunk@5661 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/sorttable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/opac/common/js/sorttable.js b/Open-ILS/web/opac/common/js/sorttable.js index ca85bd2bac..710da47578 100644 --- a/Open-ILS/web/opac/common/js/sorttable.js +++ b/Open-ILS/web/opac/common/js/sorttable.js @@ -70,6 +70,7 @@ function ts_resortTable(lnk) { // Work out a type for the column if (table.rows.length <= 1) return; var itm = ts_getInnerText(table.rows[1].cells[column]); + if(!itm) return; sortfn = ts_sort_caseinsensitive; if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d\d\d$/)) sortfn = ts_sort_date; if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d$/)) sortfn = ts_sort_date; -- 2.11.0