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'>
|
<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>
|
<a class="close" href="#">×</a>
|
||||||
<p>${message}</p>
|
<p>${message}</p>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
<script id='alert-message-error' type='text/x-jquery-tmpl'>
|
<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>
|
<a class="close" href="#">×</a>
|
||||||
<p>${message}</p>
|
<p>${message}</p>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
<script id='alert-message-warning' type='text/x-jquery-tmpl'>
|
<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>
|
<a class="close" href="#">×</a>
|
||||||
<p>${message}</p>
|
<p>${message}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -158,10 +158,10 @@ $(function() {
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function(result) {
|
success: function(result) {
|
||||||
var created = JSON.parse(result);
|
var updated = JSON.parse(result);
|
||||||
// FIXME use a message div and i18n
|
if (updated == true) {
|
||||||
if (created == true) {
|
displaySuccessMessage($.i18n.prop("user.updated",currentUser.username()));
|
||||||
displaySuccessMessage("user updated:"+currentUser.username());
|
$("#users-view-tabs-li-user-edit a").html($.i18n.prop("user.add"));
|
||||||
clearForm("#main-content #user-create");
|
clearForm("#main-content #user-create");
|
||||||
activateUsersGridTab();
|
activateUsersGridTab();
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue