Fix formatting according to HoundBot

This commit is contained in:
Jure Grabnar 2018-10-15 21:44:24 +02:00
parent afbe70a2e2
commit 1c7cc9369c

View file

@ -369,9 +369,10 @@
$(this).closest('.panel-project').removeClass('selected'); $(this).closest('.panel-project').removeClass('selected');
selectedProjects.splice(index, 1); selectedProjects.splice(index, 1);
if (selectedProjects.length == 0) if (selectedProjects.length === 0) {
exportProjectsBtn.addClass('disabled'); exportProjectsBtn.addClass('disabled');
} }
}
}); });
// initialize project tab remote loading // initialize project tab remote loading
@ -541,9 +542,10 @@
} else if (!this.checked && index !== -1) { } else if (!this.checked && index !== -1) {
selectedProjects.splice(index, 1); selectedProjects.splice(index, 1);
if (selectedProjects.length == 0) if (selectedProjects.length === 0) {
exportProjectsBtn.addClass('disabled'); exportProjectsBtn.addClass('disabled');
} }
}
updateDataTableSelectAllCtrl(); updateDataTableSelectAllCtrl();
e.stopPropagation(); e.stopPropagation();