diff --git a/web/alert.js b/web/alert.js index 7926ae5..17c095e 100644 --- a/web/alert.js +++ b/web/alert.js @@ -6,15 +6,14 @@ $(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 style; var top = 20 + $(".flash-modal").length * 100; - style = "top: " + top + "px"; + var style = "top: " + top + "px"; var obj = $('