diff --git a/web/alert.js b/web/alert.js index 17c095e..2042480 100644 --- a/web/alert.js +++ b/web/alert.js @@ -1,3 +1,5 @@ +var timerId; + $(document).on("contextmenu", ".flash-modal", function (e) { e.preventDefault(); $(this).fadeOut(420); @@ -6,7 +8,7 @@ $(document).on("contextmenu", ".flash-modal", function (e) { function showMessage(message, type, fade) { fade = typeof fade !== "undefined" ? fade : 1; type = typeof type !== "undefined" ? type : "flash-alert-info"; - var top = 20 + $(".flash-modal").length * 100; + var top = 20 + $(".flash-modal:visible").length * 100; var style = "top: " + top + "px"; var obj = $('