From dadd2e46091671e0d55cb33abe3a9b6192eabf30 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 28 Sep 2012 13:31:53 +0000 Subject: [PATCH] display a spinner while submitting data git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391452 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/general-admin.js | 4 ++++ 1 file changed, 4 insertions(+) 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"); } }); } -- 2.39.5