mirror of https://github.com/apache/archiva.git
use bootstrap toggle button feature
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dadd2e4609
commit
9a70ec8ecc
|
@ -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.
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -341,7 +341,7 @@
|
|||
</div>
|
||||
|
||||
</fieldset>
|
||||
<button id="ui-configuration-btn-save" data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
|
||||
<button id="ui-configuration-btn-save" data-bind="click: save" class="btn" data-loading-text="${$.i18n.prop('common.loading')}">${$.i18n.prop('save')}</button>
|
||||
</form>
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue