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

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js

index f8ebd7494ca30172a2f9216540c6c7934acbfbfc..da8f9912f183929b0ebeb290b3f6e1f97ccf607f 100644 (file)
     </div>
 </script>
 
+<script id="user-delete-warning-tmpl" type='text/x-jquery-tmpl'>
+    <div>
+      <span class="label label-warning">${$.i18n.prop('warning.not.undone.operation')}</span>
+    </div>
+</script>
+
 
index 1042d0a57ddad849a67347cfd621f37502b599c3..bc0523640847588aa69d2d73bb65a17dd9156d42 100644 (file)
@@ -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));
 
     }