mirror of
https://github.com/apache/archiva.git
synced 2025-02-28 13:39:13 +00:00
correctly clear user messages
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1228216 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cfd88272a0
commit
69357199e1
@ -41,10 +41,11 @@ $(function() {
|
||||
type: "GET",
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
$.log("role description updated");
|
||||
clearUserMessages();
|
||||
displaySuccessMessage($.i18n.prop("role.updated",roleName));
|
||||
},
|
||||
error: function(data){
|
||||
clearUserMessages();
|
||||
displayErrorMessage("error updating role description");
|
||||
}
|
||||
}
|
||||
@ -60,9 +61,11 @@ $(function() {
|
||||
contentType: 'application/json',
|
||||
data: "{\"role\": " + ko.toJSON(self)+"}",
|
||||
success: function(data) {
|
||||
clearUserMessages();
|
||||
displaySuccessMessage($.i18n.prop("role.users.updated",this.name));
|
||||
},
|
||||
error: function(data){
|
||||
clearUserMessages();
|
||||
displayErrorMessage("error updating users role");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user