]> source.dussan.org Git - archiva.git/commitdiff
Fixing issue of multiple login requests after logout 22/head
authorMartin Stockhammer <m.stockhammer@web.de>
Thu, 8 Sep 2016 16:41:13 +0000 (18:41 +0200)
committerMartin Stockhammer <m.stockhammer@web.de>
Thu, 8 Sep 2016 16:41:13 +0000 (18:41 +0200)
Resets the event listeners on the login button when the modal dialog is started.

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js

index da16bf56e55bf65b586b8720488ad28d2add1808..758a56a94f7386985a87a4a57f922662abb91083 100644 (file)
@@ -385,11 +385,13 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) {
         customShowError("#user-login-form",validator,errorMap,errorMap);
       }
     });
+    $("#modal-login-ok").off();
     $("#modal-login-ok").on("click", function(e) {
       e.preventDefault();
       login();
     });
 
+    $("#modal-login-password-reset").off();
     $("#modal-login-password-reset").on("click", function(e) {
       e.preventDefault();
       $.log("password reset");