]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix bug when item is ''
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 26 Oct 2006 20:27:49 +0000 (20:27 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 26 Oct 2006 20:27:49 +0000 (20:27 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3579 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/html/nrs_table.js

index e84daa881601ec0a92978885dabe71aaae417be3..4f731a4cd6671d47d1a0ddc0c33691a834187215 100755 (executable)
@@ -199,12 +199,14 @@ nrsTable.prototype.quickSort = function(left, right)
        var i = left;
        var j = right;
        var k = this.data[Math.round((left + right) / 2)][this.field_to_sort];
-        if (isNaN(k)) {
-          k = k.toLowerCase();
-        } else {
-         k = parseInt(k, 10);
-       }
-        
+       if (k != '') {
+           if (isNaN(k)) {
+             k = k.toLowerCase();
+           } else {
+            k = parseInt(k, 10);
+          }
+        }
+
        while(j > i)
        {
                if(this.field_asc)