mirror of https://github.com/apache/archiva.git
more selector cache reuse!
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1399605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
18a32a9c65
commit
3bc49a521f
|
@ -201,7 +201,8 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
|||
}
|
||||
$.log("save:"+this.managedRepository.name());
|
||||
clearUserMessages();
|
||||
$("#user-messages").html(mediumSpinnerImg());
|
||||
var userMessages=$("#user-messages");
|
||||
userMessages.html(mediumSpinnerImg());
|
||||
$("#managed-repository-save-button" ).button('loading');
|
||||
if (this.update){
|
||||
$.ajax("restServices/archivaServices/managedRepositoriesService/updateManagedRepository",
|
||||
|
@ -217,7 +218,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
|||
},
|
||||
complete: function(){
|
||||
$("#managed-repository-save-button" ).button('reset');
|
||||
removeMediumSpinnerImg("#user-messages");
|
||||
removeMediumSpinnerImg(userMessages);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -795,7 +796,8 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
|||
return;
|
||||
}
|
||||
clearUserMessages();
|
||||
$("#user-messages").html(mediumSpinnerImg());
|
||||
var userMessages=$("#user-messages");
|
||||
userMessages.html(mediumSpinnerImg());
|
||||
$("#remote-repository-save-button" ).button('loading');
|
||||
if (update){
|
||||
$.ajax("restServices/archivaServices/remoteRepositoriesService/updateRemoteRepository",
|
||||
|
@ -815,7 +817,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
|||
},
|
||||
complete: function(){
|
||||
$("#remote-repository-save-button" ).button('reset');
|
||||
removeMediumSpinnerImg("#user-messages");
|
||||
removeMediumSpinnerImg(userMessages);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue