Use zebra striping variable correctly
This commit is contained in:
parent
e0bb15bf2d
commit
bf732f7bd0
|
@ -284,8 +284,8 @@ function showStyles(styles) {
|
||||||
window.dispatchEvent(new Event('showStyles:done'));
|
window.dispatchEvent(new Event('showStyles:done'));
|
||||||
});
|
});
|
||||||
|
|
||||||
var reverseZebra = $('.entry:last-child:nth-of-type(odd)');
|
var reverseZebra = $('.entry:last-child:nth-of-type(odd)') !== null;
|
||||||
if (reverseZebra !== null) {
|
if (reverseZebra) {
|
||||||
$('#installed').classList.add('reverse-stripe');
|
$('#installed').classList.add('reverse-stripe');
|
||||||
} else {
|
} else {
|
||||||
$('#installed').classList.remove('reverse-stripe');
|
$('#installed').classList.remove('reverse-stripe');
|
||||||
|
@ -538,8 +538,8 @@ function handleDelete(id) {
|
||||||
installed.appendChild(template.noStyles.cloneNode(true));
|
installed.appendChild(template.noStyles.cloneNode(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
var reverseZebra = $('.entry:last-child:nth-of-type(odd)');
|
var reverseZebra = $('.entry:last-child:nth-of-type(odd)') !== null;
|
||||||
if (reverseZebra !== null) {
|
if (reverseZebra) {
|
||||||
$('#installed').classList.add('reverse-stripe');
|
$('#installed').classList.add('reverse-stripe');
|
||||||
} else {
|
} else {
|
||||||
$('#installed').classList.remove('reverse-stripe');
|
$('#installed').classList.remove('reverse-stripe');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user