Cleanup, add theme options

Add theme options to settings to choose between light and dark.
This commit is contained in:
2020-07-05 15:09:42 +01:00
parent adef32ef89
commit 4fb99d1724
6 changed files with 49 additions and 22 deletions

View File

@@ -3,7 +3,7 @@ var bsVersion = {{ bsVersion }};
if (bsVersion == 5) {
function createModal(id, find = false) {
if (find) {
return bootstrap.Modal.getInstance(document.getElementById(modalId));
return bootstrap.Modal.getInstance(document.getElementById(id));
};
return new bootstrap.Modal(document.getElementById(id));
};