From: Martin Stockhammer Date: Thu, 8 Sep 2016 16:41:13 +0000 (+0200) Subject: Fixing issue of multiple login requests after logout X-Git-Tag: without_jdo~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b939e928ad1d5b97c4b97baa1d7e3929dd1d55f;p=archiva.git Fixing issue of multiple login requests after logout Resets the event listeners on the login button when the modal dialog is started. --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js index da16bf56e..758a56a94 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js @@ -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");