mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-08 07:55:14 +08:00
Fix formatting according to HoundBot
This commit is contained in:
parent
afbe70a2e2
commit
1c7cc9369c
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue