From: Conny Sjöblom Date: Tue, 16 Oct 2012 09:43:01 +0000 (+0300) Subject: Allowing max 3 errors in loginscreen X-Git-Url: https://jfr.im/git/z_archive/KronOS.git/commitdiff_plain/bed8e444112b892c31c0489654978ba29c6de5f4 Allowing max 3 errors in loginscreen --- diff --git a/public/js/application.js b/public/js/application.js index 2acce40..e08ffd4 100644 --- a/public/js/application.js +++ b/public/js/application.js @@ -60,6 +60,10 @@ function submitLogin() { loadMenu(); loadBackground(); } else { + var n = jQuery(".alert").length; + if (n>2) { + jQuery(".alert").first().remove(); + } throwError(resp.error, 'error', '.messagebody'); } }, "json");