]> source.dussan.org Git - archiva.git/commitdiff
fix possible issue with multiple event binding on the same element
authorOlivier Lamy <olamy@apache.org>
Mon, 19 Nov 2012 15:28:14 +0000 (15:28 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 19 Nov 2012 15:28:14 +0000 (15:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1411246 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors-rules.js

index e9a3489e9a1c3542fae05458c11fc43aef159873..6d2cb01792ae5d42b5d77b70cceecda705b5f7a8 100644 (file)
@@ -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){