mirror of https://github.com/apache/archiva.git
display spinner when deleting remote repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1410353 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9ef8fd53c
commit
92a365ef17
|
@ -966,7 +966,9 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
||||||
removeRemoteRepository=function(remoteRepository){
|
removeRemoteRepository=function(remoteRepository){
|
||||||
clearUserMessages();
|
clearUserMessages();
|
||||||
openDialogConfirm(
|
openDialogConfirm(
|
||||||
function(){$.ajax("restServices/archivaServices/remoteRepositoriesService/deleteRemoteRepository/"+encodeURIComponent(remoteRepository.id()),
|
function(){
|
||||||
|
$("#dialog-confirm-modal-body-text" ).html(mediumSpinnerImg());
|
||||||
|
$.ajax("restServices/archivaServices/remoteRepositoriesService/deleteRemoteRepository/"+encodeURIComponent(remoteRepository.id()),
|
||||||
{
|
{
|
||||||
type: "GET",
|
type: "GET",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
@ -978,6 +980,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
||||||
displayRestError(res);
|
displayRestError(res);
|
||||||
},
|
},
|
||||||
complete:function(){
|
complete:function(){
|
||||||
|
removeMediumSpinnerImg($("#dialog-confirm-modal-body-text" ));
|
||||||
closeDialogConfirm();
|
closeDialogConfirm();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue