mirror of https://github.com/apache/archiva.git
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",
|
type: "GET",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$.log("role description updated");
|
clearUserMessages();
|
||||||
displaySuccessMessage($.i18n.prop("role.updated",roleName));
|
displaySuccessMessage($.i18n.prop("role.updated",roleName));
|
||||||
},
|
},
|
||||||
error: function(data){
|
error: function(data){
|
||||||
|
clearUserMessages();
|
||||||
displayErrorMessage("error updating role description");
|
displayErrorMessage("error updating role description");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,9 +61,11 @@ $(function() {
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
data: "{\"role\": " + ko.toJSON(self)+"}",
|
data: "{\"role\": " + ko.toJSON(self)+"}",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
clearUserMessages();
|
||||||
displaySuccessMessage($.i18n.prop("role.users.updated",this.name));
|
displaySuccessMessage($.i18n.prop("role.users.updated",this.name));
|
||||||
},
|
},
|
||||||
error: function(data){
|
error: function(data){
|
||||||
|
clearUserMessages();
|
||||||
displayErrorMessage("error updating users role");
|
displayErrorMessage("error updating users role");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue