From: Eric Bollengier Date: Thu, 26 Oct 2006 20:27:49 +0000 (+0000) Subject: ebl fix bug when item is '' X-Git-Tag: Release-2.0.0~338 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=902be920fa22eed0e882957fa99a13ea0ac73281;p=bacula%2Fbacula ebl fix bug when item is '' git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3579 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/html/nrs_table.js b/gui/bweb/html/nrs_table.js index e84daa8816..4f731a4cd6 100755 --- a/gui/bweb/html/nrs_table.js +++ b/gui/bweb/html/nrs_table.js @@ -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)