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.
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',
},
complete: function(){
removeMediumSpinnerImg("#user-messages");
+ $("#main-content" ).find("#ui-configuration-btn-save" ).button('reset');
}
});
}
</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>