Move the JS alert function definition to /js/alert.js and move the alert div to views/layout.ecr

This commit is contained in:
Alex Ling
2020-03-01 01:23:16 +00:00
parent d50804830d
commit 8fbc5528a8
10 changed files with 12 additions and 41 deletions

View File

@@ -42,11 +42,3 @@ function updateProgress(titleID, entryID, page) {
}
});
}
function alert(level, text) {
hideAlert();
var html = '<div class="uk-alert-' + level + '" uk-alert><a class="uk-alert-close" uk-close></a><p>' + text + '</p></div>';
$('#alert').append(html);
}
function hideAlert() {
$('#alert').empty();
}