2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 11:40:58 +00:00

Added dismissable notifications

- Bootstrap alert
- Can close manually
- Also set to disappear after configurable time
This commit is contained in:
Oliver
2018-04-29 23:29:38 +10:00
parent 006aa69dbb
commit b6665ec2a7
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,8 @@
function showAlert(target, message, timeout=5000) {
$(target).find(".alert-msg").html(message);
$(target).show();
$(target).delay(timeout).slideUp(200, function() {
$(this).alert(close);
});
}