From 0b939e928ad1d5b97c4b97baa1d7e3929dd1d55f Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Thu, 8 Sep 2016 18:41:13 +0200 Subject: [PATCH] Fixing issue of multiple login requests after logout Resets the event listeners on the login button when the modal dialog is started. --- .../archiva-webapp/src/main/webapp/js/redback/user.js | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.39.5