fix close on user messages

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1220980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-12-19 22:38:00 +00:00
parent ef781c9859
commit f02d7af029
2 changed files with 7 additions and 7 deletions

View File

@ -1,17 +1,17 @@
<script id='alert-message-success' type='text/x-jquery-tmpl'>
<div class="alert-message fade in success">
<div class="alert-message fade in success" data-alert="alert">
<a class="close" href="#">×</a>
<p>${message}</p>
</div>
</script>
<script id='alert-message-error' type='text/x-jquery-tmpl'>
<div class="alert-message fade in error">
<div class="alert-message fade in error" data-alert="alert">
<a class="close" href="#">×</a>
<p>${message}</p>
</div>
</script>
<script id='alert-message-warning' type='text/x-jquery-tmpl'>
<div class="alert-message fade in warning">
<div class="alert-message fade in warning" data-alert="alert">
<a class="close" href="#">×</a>
<p>${message}</p>
</div>

View File

@ -158,10 +158,10 @@ $(function() {
type: "POST",
dataType: 'json',
success: function(result) {
var created = JSON.parse(result);
// FIXME use a message div and i18n
if (created == true) {
displaySuccessMessage("user updated:"+currentUser.username());
var updated = JSON.parse(result);
if (updated == true) {
displaySuccessMessage($.i18n.prop("user.updated",currentUser.username()));
$("#users-view-tabs-li-user-edit a").html($.i18n.prop("user.add"));
clearForm("#main-content #user-create");
activateUsersGridTab();
return this;