From: Olivier Lamy Date: Thu, 29 Mar 2012 12:16:28 +0000 (+0000) Subject: proxy connector make the tooltip working the proxyId was marked as modified whereas... X-Git-Tag: archiva-1.4-M3~911 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ecce53f1be35e491e06d0a8cf00b03e751e4395d;p=archiva.git proxy connector make the tooltip working the proxyId was marked as modified whereas it was not (due to the select undefined for direct connection) git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1306804 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js index ff4dadf6a..e067a1020 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js @@ -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 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");