]> source.dussan.org Git - archiva.git/commitdiff
display a spinner while submitting data
authorOlivier Lamy <olamy@apache.org>
Fri, 28 Sep 2012 13:31:53 +0000 (13:31 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 28 Sep 2012 13:31:53 +0000 (13:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391452 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js

index 2034be330e069a095774eeac7efe256c316b5aae..c3eb1fc925ac7f49b8f37bb3b1ef2c51b3221b58 100644 (file)
@@ -598,6 +598,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
     this.uiConfiguration=ko.observable(uiConfiguration);
     var self=this;
     save=function(){
+      $("#user-messages").html( mediumSpinnerImg());
       $.ajax("restServices/archivaServices/archivaAdministrationService/setUiConfiguration", {
         type: "POST",
         contentType: 'application/json',
@@ -605,6 +606,9 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
         dataType: 'json',
         success: function(data){
           displaySuccessMessage( $.i18n.prop("ui-configuration.updated"));
+        },
+        complete: function(){
+          removeMediumSpinnerImg("#user-messages");
         }
       });
     }