Don't treat 'None' as a number
authorJamie Cameron <jcameron@webmin.com>
Sat, 7 Mar 2009 21:13:50 +0000 (21:13 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 7 Mar 2009 21:13:50 +0000 (21:13 +0000)
blue-theme/unauthenticated/sorttable.js

index ebb8255..78eeb06 100644 (file)
@@ -77,7 +77,7 @@ function ts_resortTable(lnk,clid) {
     //if (itm.match(/^[\d\.]+$/)) sortfn = ts_sort_numeric;
     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(/^(None|Empty|Unlimited)$/)) sortfn = ts_sort_filesize;
+    if (itm.match(/^(Empty|Unlimited)$/)) sortfn = ts_sort_filesize;
     SORT_COLUMN_INDEX = column;
     var firstRow = new Array();
     var newRows = new Array();