use warning label for modal confirm delete proxy connector

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-02-26 23:07:31 +00:00
parent 63bb780965
commit a3868cb428
2 changed files with 8 additions and 1 deletions

View File

@ -321,7 +321,8 @@ $(function() {
displaySuccessMessage($.i18n.prop('proxyconnector.removed')); displaySuccessMessage($.i18n.prop('proxyconnector.removed'));
self.proxyConnectors.remove(proxyConnector); self.proxyConnectors.remove(proxyConnector);
closeDialogConfirm(); 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));
} }

View File

@ -296,3 +296,9 @@
</div> </div>
</script> </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>