From a932e2333130fe7e852b417093c1d764a59dba40 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 30 Apr 2009 05:46:42 +0000 Subject: [PATCH] Allow percentage sorting --- blue-theme/unauthenticated/sorttable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blue-theme/unauthenticated/sorttable.js b/blue-theme/unauthenticated/sorttable.js index 9a6476b45..5014a6802 100644 --- a/blue-theme/unauthenticated/sorttable.js +++ b/blue-theme/unauthenticated/sorttable.js @@ -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();