this.networkConfiguration=ko.observable(networkConfiguration);
save=function(){
+ $("#user-messages" ).html(mediumSpinnerImg());
+ var mainContent=$("#main-content");
if (!$("#main-content" ).find("#network-configuration-edit-form").valid()){
return;
}
- clearUserMessages();
+ mainContent.find("#network-configuration-btn-save" ).button('loading');
$.ajax("restServices/archivaServices/archivaAdministrationService/setNetworkConfiguration", {
type: "POST",
contentType: 'application/json',
dataType: 'json',
success: function(data){
displaySuccessMessage( $.i18n.prop("network-configuration.updated"));
+ },
+ complete: function(){
+ removeMediumSpinnerImg("#user-messages");
+ mainContent.find("#network-configuration-btn-save" ).button('reset');
}
});
}