From bad94f79ebcfd4e59afd9e79b9c47c1bbfa4035a Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sun, 24 May 2015 17:23:43 +0200 Subject: [PATCH] baculum: Fix sorting with no impact on rows background colors --- gui/baculum/protected/JavaScript/slide-window.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 () { -- 2.39.5