WebUI: Use CSS to alternate row colors in transferlist

Keep the old code for IE < 9, the majority of the browsers
shouldn't need it.

Also, keep the CSS code in one place.
This commit is contained in:
Gabriele 2014-11-11 15:26:20 +01:00
parent 8a4028fc84
commit 0b6d5c662a
3 changed files with 7 additions and 9 deletions

View file

@ -63,6 +63,9 @@ var dynamicTable = new Class({
},
altRow : function () {
if (!MUI.ieLegacySupport)
return;
var trs = this.table.getElements('tr');
trs.each(function (el, i) {
if (i % 2) {