From: Olivier Lamy Date: Fri, 28 Sep 2012 13:31:53 +0000 (+0000) Subject: display a spinner while submitting data X-Git-Tag: archiva-1.4-M3~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dadd2e46091671e0d55cb33abe3a9b6192eabf30;p=archiva.git display a spinner while submitting data git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391452 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js index 2034be330..c3eb1fc92 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js @@ -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"); } }); }