Browse Source

Improve alert fadeout

master
Skylar Ittner 1 year ago
parent
commit
769d24b4b7
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      static/js/app.js

+ 6
- 3
static/js/app.js View File

@@ -47,9 +47,12 @@ $(document).ready(function () {
$("#msg-alert-box .alert").fadeTo(1000, 0.5);
}
if (msginteractiontick >= gone) {
$("#msg-alert-box .alert").fadeOut("slow", function () {
});
window.clearInterval(msgticker);
setTimeout(function () {
if (msginteractiontick >= gone) {
$("#msg-alert-box .alert").fadeOut("slow");
window.clearInterval(msgticker);
}
}, 1000);
}
}, 1000 * 1);


Loading…
Cancel
Save