]> jfr.im git - z_archive/KronOS.git/commitdiff
Allowing max 3 errors in loginscreen
authorConny Sjöblom <redacted>
Tue, 16 Oct 2012 09:43:01 +0000 (12:43 +0300)
committerConny Sjöblom <redacted>
Tue, 16 Oct 2012 09:43:01 +0000 (12:43 +0300)
public/js/application.js

index 2acce4099e72f50479c27d71c73d3b499393fec3..e08ffd46bd70f0c166a8d6d9ca790c469ff1bd42 100644 (file)
@@ -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");