]> source.dussan.org Git - archiva.git/commitdiff
use warning label for modal confirm delete network proxy
authorOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 23:07:03 +0000 (23:07 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 23:07:03 +0000 (23:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293956 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/network-proxies.html

index 800dc1967ea94c89a99fd11921152d84477dad20..f96253a29350f4e4ad20cfe258e44346da96e4ef 100644 (file)
@@ -193,7 +193,8 @@ $(function() {
                   closeDialogConfirm();
                 }
               }
-            )}, $.i18n.prop('ok'), $.i18n.prop('cancel'), $.i18n.prop('networkproxy.delete.confirm',networkProxy.id()),null);
+            )}, $.i18n.prop('ok'), $.i18n.prop('cancel'), $.i18n.prop('networkproxy.delete.confirm',networkProxy.id()),
+            $("#network-proxy-delete-warning-tmpl" ).tmpl(networkProxy));
     }
   }
 
index 7521aaef028497993f3df466c3340c9109f60b4b..aebbb784f9322a977327dd56c320647dcd428d86 100644 (file)
   {{if bulkSave()}}
     <a data-bind="click: updateModifiedNetworkProxies" class="btn btn-danger" href="#">${$.i18n.prop('save.all')}</a>
   {{/if}}
+</script>
+<script id="network-proxy-delete-warning-tmpl" type='text/x-jquery-tmpl'>
+    <div>
+      <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
+    </div>
 </script>
\ No newline at end of file