From 1cfab8837f6a1de82c0513ba754dcee8024815d0 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 19 Nov 2012 15:28:14 +0000 Subject: [PATCH] fix possible issue with multiple event binding on the same element git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1411246 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/proxy-connectors-rules.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js index e9a3489e9..6d2cb0179 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js @@ -233,6 +233,7 @@ define("archiva.proxy-connectors-rules",["jquery","i18n","jquery.tmpl","bootstra $("#main-content" ).find("#proxy-connectors-rules-available-proxy-connectors" ).find("[data-source-repoId="+sourceRepoId+"][data-target-repoId="+targetRepoId+"]" ).on("click", function(){ self.removeAvailable(proxyConnectorRulesViewModel,$(this).attr("data-source-repoId"),$(this).attr("data-target-repoId")); }); + $("#main-content" ).find("#proxy-connectors-rules-edit-order-div" ).find("[data-source-repoId="+sourceRepoId+"][data-target-repoId="+targetRepoId+"]" ).off("click"); } this.activateRemoveChoosen=function(proxyConnectorRulesViewModel){ @@ -259,6 +260,7 @@ define("archiva.proxy-connectors-rules",["jquery","i18n","jquery.tmpl","bootstra $("#main-content" ).find("#proxy-connectors-rules-edit-order-div" ).find("[data-source-repoId="+sourceRepoId+"][data-target-repoId="+targetRepoId+"]" ).on("click", function(){ self.removeChoosen(proxyConnectorRulesViewModel,$(this).attr("data-source-repoId"),$(this).attr("data-target-repoId")); }); + $("#main-content" ).find("#proxy-connectors-rules-available-proxy-connectors" ).find("[data-source-repoId="+sourceRepoId+"][data-target-repoId="+targetRepoId+"]" ).off("click"); } this.activateRemoveAvailable=function(proxyConnectorRulesViewModel){