//private String proxyId;
this.proxyId=ko.observable(proxyId);
this.proxyId.subscribe(function(newValue){
+ $.log("proxyId modified");
self.modified(true);
});
});
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());
}
}
this.remoteRepositories=ko.observableArray([]);
this.networkProxies=ko.observableArray([]);
-
this.bulkSave=function(){
return getModifiedProxyConnectors().length>0;
}
data: self.proxyConnectors,
pageSize: 5,
gridUpdateCallBack: function(){
- $("#main-content #proxyConnectorsTable [title]").tooltip();
+ //$("#main-content #proxyConnectorsTable [title]").tooltip();
}
});
var mainContent = $("#main-content");
<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>