From: Eric B. <ri...@us...> - 2006-10-26 20:27:53
|
Update of /cvsroot/bacula/gui/bweb/html In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32239 Modified Files: nrs_table.js Log Message: ebl fix bug when item is '' Index: nrs_table.js =================================================================== RCS file: /cvsroot/bacula/gui/bweb/html/nrs_table.js,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- nrs_table.js 8 Aug 2006 21:43:13 -0000 1.1 +++ nrs_table.js 26 Oct 2006 20:27:49 -0000 1.2 @@ -199,12 +199,14 @@ 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) |