From: Marcin Haba Date: Sun, 24 May 2015 15:23:43 +0000 (+0200) Subject: baculum: Fix sorting with no impact on rows background colors X-Git-Tag: Release-7.2.0~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bad94f79ebcfd4e59afd9e79b9c47c1bbfa4035a;p=bacula%2Fbacula baculum: Fix sorting with no impact on rows background colors --- diff --git a/gui/baculum/protected/JavaScript/slide-window.js b/gui/baculum/protected/JavaScript/slide-window.js index 36303a3d34..e8b1325c71 100644 --- a/gui/baculum/protected/JavaScript/slide-window.js +++ b/gui/baculum/protected/JavaScript/slide-window.js @@ -274,7 +274,15 @@ var SlideWindowClass = Class.create({ } return reverse * (val); }); - for(i = 0; i < tr.length; ++i) tb.appendChild(tr[i]); + for(i = 0; i < tr.length; i++) { + var even = ((i % 2) == 0); + if (even) { + tr[i].className = this.elements.contentItems; + } else { + tr[i].className = this.elements.contentAlternatingItems; + } + tb.appendChild(tr[i]); + } }, makeSortable: function () {