mirror of https://github.com/apache/archiva.git
prevent tooltip not removed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1306803 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8d5f87a4c7
commit
f432069ad6
|
@ -38,6 +38,7 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
|
|||
//private String proxyId;
|
||||
this.proxyId=ko.observable(proxyId);
|
||||
this.proxyId.subscribe(function(newValue){
|
||||
$.log("proxyId modified");
|
||||
self.modified(true);
|
||||
});
|
||||
|
||||
|
@ -78,23 +79,19 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
|
|||
});
|
||||
|
||||
this.modified=ko.observable(false);
|
||||
//this.modified.subscribe(function(newValue){$.log("ProxyConnector modified:"+newValue)});
|
||||
|
||||
this.updatePolicyEntry=function(key,value){
|
||||
$.log("updatePolicyEntry:"+key+":"+value);
|
||||
var found=false;
|
||||
for(var i=0;i<self.policiesEntries().length;i++){
|
||||
$.log('loop policiesEntries:'+self.policiesEntries()[i].key);
|
||||
if (self.policiesEntries()[i].key==key){
|
||||
self.policiesEntries()[i].value=value;
|
||||
$.log("really updatedPolicyEntry:"+key+":"+self.policiesEntries()[i].value)
|
||||
found=true;
|
||||
self.modified(true);
|
||||
}
|
||||
}
|
||||
if(!found){
|
||||
self.policiesEntries().push(new Entry(key,value));
|
||||
$.log("added updatedPolicyEntry:"+key+":"+self.policiesEntries()[i].value());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -284,7 +281,6 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
|
|||
this.remoteRepositories=ko.observableArray([]);
|
||||
this.networkProxies=ko.observableArray([]);
|
||||
|
||||
|
||||
this.bulkSave=function(){
|
||||
return getModifiedProxyConnectors().length>0;
|
||||
}
|
||||
|
@ -437,7 +433,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");
|
||||
|
|
|
@ -172,10 +172,9 @@
|
|||
<tr>
|
||||
<td data-bind="text: name"></td>
|
||||
<td>
|
||||
<select
|
||||
data-bind="options: getPolicyOptions(id()),value:getSelectedPolicyOption(id()),
|
||||
attr: { id: 'policy-'+id() },event: { change: function(){ changePolicyOption(id())},}"
|
||||
></select>
|
||||
<select data-bind="options: getPolicyOptions(id()),value:getSelectedPolicyOption(id()),
|
||||
attr: { id: 'policy-'+id() },event: { change: function(){ changePolicyOption(id())},}">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue