From aa750e5e589d98f24218ba0585592177b035f3dd Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 26 Feb 2012 23:07:44 +0000 Subject: [PATCH] use warning label for modal confirm delete user git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293959 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/redback/templates/user-grids.html | 6 ++++++ .../archiva-webapp-js/src/main/webapp/js/redback/users.js | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html index f8ebd7494..da8f9912f 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html @@ -103,4 +103,10 @@ + + diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js index 1042d0a57..bc0523640 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js @@ -118,7 +118,8 @@ $(function() { } ); } - ,"Ok", $.i18n.prop("cancel"), $.i18n.prop("user.delete.message") + ": " + currentUser.username()); + ,"Ok", $.i18n.prop("cancel"), $.i18n.prop("user.delete.message") + ": " + currentUser.username(), + $("#user-delete-warning-tmpl" ).tmpl(currentUser)); }