From: Olivier Lamy Date: Fri, 28 Sep 2012 13:32:12 +0000 (+0000) Subject: use bootstrap toggle button feature X-Git-Tag: archiva-1.4-M3~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9a70ec8eccde0ac28ac9700d3e420271b24fb8fa;p=archiva.git use bootstrap toggle button feature git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391453 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties index 0ea324242..fd2c9b35f 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties @@ -36,6 +36,7 @@ identifier=Id url=Url directory=Directory save.all=Save all +common.loading=Loading... authz.karma.needed=You need to be authenticated for this action or have more privileges. error.500=An error has happened you must contact the administrator to check the logs. 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 c3eb1fc92..4fcb25202 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 @@ -599,6 +599,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" var self=this; save=function(){ $("#user-messages").html( mediumSpinnerImg()); + $("#main-content" ).find("#ui-configuration-btn-save" ).button('loading'); $.ajax("restServices/archivaServices/archivaAdministrationService/setUiConfiguration", { type: "POST", contentType: 'application/json', @@ -609,6 +610,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" }, complete: function(){ removeMediumSpinnerImg("#user-messages"); + $("#main-content" ).find("#ui-configuration-btn-save" ).button('reset'); } }); } diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html index 22a0f8ddc..c6dff4fe4 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html @@ -341,7 +341,7 @@ - +