Allow percentage sorting

This commit is contained in:
Jamie Cameron
2009-04-30 05:46:42 +00:00
parent 621cb4d345
commit a932e23331

View File

@@ -79,7 +79,7 @@ function ts_resortTable(lnk,clid) {
if (itm.match(/^[\d\.]+\s*(bytes|b|kb|tb|gb|mb)$/i)) sortfn = ts_sort_filesize;
// Special cases for our mailbox lists
if (itm.match(/^(Empty|Unlimited)$/)) sortfn = ts_sort_filesize;
if (itm.match(/^[\d\.]+$/)) sortfn = ts_sort_numeric;
if (itm.match(/^[\d\.]+%?$/)) sortfn = ts_sort_numeric;
SORT_COLUMN_INDEX = column;
var firstRow = new Array();
var newRows = new Array();