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

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/proxy-connectors.html

index bc3938a6eb2e8a8bbeb8f1c78a532e5f287220a5..863d84a44ea9c35513bdc47b0c54096444c1f59f 100644 (file)
@@ -321,7 +321,8 @@ $(function() {
             displaySuccessMessage($.i18n.prop('proxyconnector.removed'));
             self.proxyConnectors.remove(proxyConnector);
             closeDialogConfirm();
-          })}, $.i18n.prop('ok'), $.i18n.prop('cancel'), $.i18n.prop('proxyconnector.delete.confirm'),null);
+          })}, $.i18n.prop('ok'), $.i18n.prop('cancel'), $.i18n.prop('proxyconnector.delete.confirm'),
+          $("#proxy-connector-delete-warning-tmpl").tmpl(proxyConnector));
 
 
     }
index 1802cd341373e3da82169cc5a49f14a83bef4d70..0b01d4ed4b1cf95723120c048576f3fcc0bd91b7 100644 (file)
   </div>
 </script>
 
+<script id="proxy-connector-delete-warning-tmpl" type='text/x-jquery-tmpl'>
+    <div>
+      <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
+    </div>
+</script>
+