mirror of https://github.com/apache/archiva.git
use loading button feature while saving managed repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1398299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
db80856a32
commit
56450cc053
|
@ -201,6 +201,8 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
|||
}
|
||||
$.log("save:"+this.managedRepository.name());
|
||||
clearUserMessages();
|
||||
$("#user-messages").html(mediumSpinnerImg());
|
||||
$("#managed-repository-save-button" ).button('loading');
|
||||
if (this.update){
|
||||
$.ajax("restServices/archivaServices/managedRepositoriesService/updateManagedRepository",
|
||||
{
|
||||
|
@ -212,6 +214,10 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
|||
displaySuccessMessage($.i18n.prop('managedrepository.updated',self.managedRepository.id()));
|
||||
activateManagedRepositoriesGridTab();
|
||||
self.managedRepository.modified(false);
|
||||
},
|
||||
complete: function(){
|
||||
$("#managed-repository-save-button" ).button('reset');
|
||||
removeMediumSpinnerImg("#user-messages");
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -233,6 +239,10 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
|||
}else{
|
||||
addManagedRepository(self.managedRepository);
|
||||
}
|
||||
},
|
||||
complete: function(){
|
||||
$("#managed-repository-save-button" ).button('reset');
|
||||
removeMediumSpinnerImg("#user-messages");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -391,10 +391,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</fieldset>
|
||||
<button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
|
||||
<button data-bind="click: save" class="btn" id="managed-repository-save-button">${$.i18n.prop('save')}</button>
|
||||
<button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
|
||||
</form>
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue