]> source.dussan.org Git - archiva.git/commitdiff
proxy connector make the tooltip working the proxyId was marked as modified whereas...
authorOlivier Lamy <olamy@apache.org>
Thu, 29 Mar 2012 12:16:28 +0000 (12:16 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 29 Mar 2012 12:16:28 +0000 (12:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1306804 13f79535-47bb-0310-9956-ffa450edef68

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

index ff4dadf6aef25fe709d3374048a3ad73f13b77f1..e067a10205998d835701bd67c76ad3910cbe85aa 100644 (file)
@@ -35,11 +35,16 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
       self.modified(true);
     });
 
+    this.previousProxyId=proxyId;
+
     //private String proxyId;
     this.proxyId=ko.observable(proxyId);
     this.proxyId.subscribe(function(newValue){
-      $.log("proxyId modified");
-      self.modified(true);
+      if(newValue!=self.previousProxyId){
+        $.log("proxyId modified:"+newValue+",previous:"+self.previousProxyId);
+        self.previousProxyId=newValue;
+        self.modified(true);
+      }
     });
 
     //private List<String> blackListPatterns;
@@ -433,7 +438,7 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
         data: self.proxyConnectors,
         pageSize: 5,
         gridUpdateCallBack: function(){
-          //$("#main-content #proxyConnectorsTable [title]").tooltip();
+          $("#main-content #proxyConnectorsTable [title]").tooltip();
         }
       });
       var mainContent = $("#main-content");