diff --git a/static/js/app.js b/static/js/app.js index ab249e7..14b7c2a 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -3,9 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ $(document).ready(function () { - $("#msg-alert-box").on("click", ".close", function (e) { - $("#msg-alert-box").fadeOut("slow"); - }); if ($("#msg-alert-box").length) { $("#msg-alert-box .progress").css("height", "3px"); @@ -60,6 +57,10 @@ $(document).ready(function () { msginteractiontick = 0; console.log("👈😎👈 zoop"); }); + $("#msg-alert-box").on("click", ".close", function (e) { + $("#msg-alert-box").fadeOut("slow"); + window.clearInterval(msgticker); + }); } });