]> source.dussan.org Git - archiva.git/commitdiff
correctly clear user messages
authorOlivier Lamy <olamy@apache.org>
Fri, 6 Jan 2012 15:01:08 +0000 (15:01 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 6 Jan 2012 15:01:08 +0000 (15:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1228216 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js

index bd113eda62a3994d24f377f25540a205aaeb3668..1c12cc81d796279ab7bb08872d46737fb7022df7 100644 (file)
@@ -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");
           }
         }