mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 07:26:20 +08:00
Fix formatting according to HoundBot
This commit is contained in:
parent
d50f56e319
commit
447cad083d
1 changed files with 4 additions and 2 deletions
|
@ -369,8 +369,9 @@
|
|||
$(this).closest('.panel-project').removeClass('selected');
|
||||
selectedProjects.splice(index, 1);
|
||||
|
||||
if (selectedProjects.length == 0)
|
||||
if (selectedProjects.length === 0) {
|
||||
exportProjectsBtn.addClass('disabled');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -541,8 +542,9 @@
|
|||
} else if (!this.checked && index !== -1) {
|
||||
selectedProjects.splice(index, 1);
|
||||
|
||||
if (selectedProjects.length == 0)
|
||||
if (selectedProjects.length === 0) {
|
||||
exportProjectsBtn.addClass('disabled');
|
||||
}
|
||||
}
|
||||
|
||||
updateDataTableSelectAllCtrl();
|
||||
|
|
Loading…
Reference in a new issue