From: erickson Date: Thu, 24 Aug 2006 18:41:58 +0000 (+0000) Subject: added sanity check for when the table has been altered X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ec3a9ec79ee35bc9ac4aff470181d2a83ff000ba;p=Evergreen.git 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 --- 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;