archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1391452 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
Date Fri, 28 Sep 2012 13:31:53 GMT
Author: olamy
Date: Fri Sep 28 13:31:53 2012
New Revision: 1391452

URL: http://svn.apache.org/viewvc?rev=1391452&view=rev
Log:
display a spinner while submitting data

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js?rev=1391452&r1=1391451&r2=1391452&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
Fri Sep 28 13:31:53 2012
@@ -598,6 +598,7 @@ define("archiva.general-admin",["jquery"
     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"
         dataType: 'json',
         success: function(data){
           displaySuccessMessage( $.i18n.prop("ui-configuration.updated"));
+        },
+        complete: function(){
+          removeMediumSpinnerImg("#user-messages");
         }
       });
     }



Mime
View raw message