mirror of https://github.com/apache/archiva.git
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:
parent
ef781c9859
commit
f02d7af029
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue