archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject archiva git commit: Fixing issue of multiple login requests after logout
Date Fri, 09 Sep 2016 12:32:25 GMT
Repository: archiva
Updated Branches:
  refs/heads/master a74672194 -> 0b939e928


Fixing issue of multiple login requests after logout

Resets the event listeners on the login button when the modal dialog is started.


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/0b939e92
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/0b939e92
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/0b939e92

Branch: refs/heads/master
Commit: 0b939e928ad1d5b97c4b97baa1d7e3929dd1d55f
Parents: a746721
Author: Martin Stockhammer <m.stockhammer@web.de>
Authored: Thu Sep 8 18:41:13 2016 +0200
Committer: Martin Stockhammer <m.stockhammer@web.de>
Committed: Thu Sep 8 18:41:13 2016 +0200

----------------------------------------------------------------------
 .../archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/0b939e92/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js
----------------------------------------------------------------------
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 da16bf5..758a56a 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");


Mime
View raw message