});
return prx;
}
- updateModifiedManagedRepositories=function(){
- }
- updateModifiedNetworkProxy=function(){
+ updateModifiedNetworkProxies=function(){
var modifiedNetworkProxies = getModifiedNetworkProxies();
openDialogConfirm(function(){
}
updateModifiedManagedRepositories=function(){
var repos = getModifiedManagedRepositories();
- for (i=0;i<repos.length;i++){
- updateManagedRepository(repos[i]);
- }
+
+ openDialogConfirm(function(){
+ for (i=0;i<repos.length;i++){
+ updateManagedRepository(repos[i]);
+ }
+ closeDialogConfirm();
+ },
+ $.i18n.prop('ok'),
+ $.i18n.prop('cancel'),
+ $.i18n.prop('bulk.save.confirm.title'),
+ $.i18n.prop('managed.repository.bulk.save.confirm',repos.length));
}
showStats=function(managedRepository){
<script id="network-proxies-bulk-save-tmpl" type='text/x-jquery-tmpl'>
{{if bulkSave()}}
- <button data-bind="click: updateModifiedNetworkProxy" class="btn">${$.i18n.prop('save.all')}</button>
+ <button data-bind="click: updateModifiedNetworkProxies" class="btn">${$.i18n.prop('save.all')}</button>
{{/if}}
</script>
\ No newline at end of file