toggle striping class instead of add/remove
This commit is contained in:
parent
bf732f7bd0
commit
743a1b6812
|
@ -285,11 +285,7 @@ function showStyles(styles) {
|
||||||
});
|
});
|
||||||
|
|
||||||
var reverseZebra = $('.entry:last-child:nth-of-type(odd)') !== null;
|
var reverseZebra = $('.entry:last-child:nth-of-type(odd)') !== null;
|
||||||
if (reverseZebra) {
|
$('#installed').classList.toggle('reverse-stripe', reverseZebra);
|
||||||
$('#installed').classList.add('reverse-stripe');
|
|
||||||
} else {
|
|
||||||
$('#installed').classList.remove('reverse-stripe');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -539,11 +535,7 @@ function handleDelete(id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var reverseZebra = $('.entry:last-child:nth-of-type(odd)') !== null;
|
var reverseZebra = $('.entry:last-child:nth-of-type(odd)') !== null;
|
||||||
if (reverseZebra) {
|
$('#installed').classList.toggle('reverse-stripe', reverseZebra);
|
||||||
$('#installed').classList.add('reverse-stripe');
|
|
||||||
} else {
|
|
||||||
$('#installed').classList.remove('reverse-stripe');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user