return prx;
}
- updateNetworkProxies=function(){
+ updateModifiedNetworkProxy=function(){
var modifiedNetworkProxies = getModifiedNetworkProxies();
- for(i=0;i<modifiedNetworkProxies.length;i++){
- var viewModel = new NetworkProxyViewModel(modifiedNetworkProxies[i],true,self,false);
- viewModel.save();
- }
+
+ openDialogConfirm(function(){
+ for(i=0;i<modifiedNetworkProxies.length;i++){
+ var viewModel = new NetworkProxyViewModel(modifiedNetworkProxies[i],true,self,false);
+ viewModel.save();
+ }
+ closeDialogConfirm();
+ },
+ $.i18n.prop('ok'),
+ $.i18n.prop('cancel'),
+ $.i18n.prop('bulk.save.confirm.title'),
+ $.i18n.prop('networkproxy.bulk.save.confirm',modifiedNetworkProxies.length));
+
+
}
updateNetworkProxy=function(networkProxy){
<script id="network-proxies-bulk-save-tmpl" type='text/x-jquery-tmpl'>
{{if bulkSave()}}
- <button data-bind="click: updateNetworkProxies" class="btn">${$.i18n.prop('save.all')}</button>
+ <button data-bind="click: updateModifiedNetworkProxy" class="btn">${$.i18n.prop('save.all')}</button>
{{/if}}
</script>
\ No newline at end of file