From: Marcin Haba Date: Sat, 29 Nov 2014 20:49:39 +0000 (+0100) Subject: baculum: Fix for data grids sorting X-Git-Tag: Release-7.2.0~109 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2666881c18b8a5acb3d0efde877b7c7a32ca0f60;p=bacula%2Fbacula baculum: Fix for data grids sorting --- diff --git a/gui/baculum/protected/JavaScript/slide-window.js b/gui/baculum/protected/JavaScript/slide-window.js index 8ee9938172..1381a4796c 100644 --- a/gui/baculum/protected/JavaScript/slide-window.js +++ b/gui/baculum/protected/JavaScript/slide-window.js @@ -273,7 +273,12 @@ var SlideWindowClass = Class.create({ } else { return; } - while (--i >= 1) (function (i) { + var downCounter = 0; + // skip first column if in column header is input (checkbox for elements mark) + if (th[0].childNodes[0].nodeName == "INPUT") { + downCounter = 1; + } + while (--i >= downCounter) (function (i) { var dir = 1; th[i].addEventListener('click', function () { self.sortTable(i, (dir = 1 - dir));