Fix modal and dropdown colors in dark mode

and get rid of the hacky `styleModal` function
This commit is contained in:
Alex Ling
2020-07-22 12:06:29 +00:00
parent a994c43857
commit 6c2350c9c7
5 changed files with 38 additions and 26 deletions
-2
View File
@@ -51,7 +51,6 @@ const download = () => {
UIkit.modal.confirm(`${successCount} of ${successCount + failCount} chapters added to the download queue. Proceed to the download manager?`).then(() => {
window.location.href = base_url + 'admin/downloads';
});
styleModal();
})
.fail((jqXHR, status) => {
alert('danger', `Failed to add chapters to the download queue. Error: [${jqXHR.status}] ${jqXHR.statusText}`);
@@ -61,7 +60,6 @@ const download = () => {
$('#download-btn').removeAttr('hidden');
});
});
styleModal();
};
const toggleSpinner = () => {
var attr = $('#spinner').attr('hidden');