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
This commit is contained in:
Olivier Lamy 2012-03-29 12:16:28 +00:00
parent f432069ad6
commit ecce53f1be
1 changed files with 8 additions and 3 deletions

View 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");