mirror of https://github.com/apache/archiva.git
fix spinner when removing managedRepository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1388230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6416aa4ab3
commit
691a689aaa
|
@ -361,13 +361,11 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
|||
clearUserMessages();
|
||||
openDialogConfirm(
|
||||
function(){
|
||||
$("#dialog-confirm-modal").find("#modal-login-footer").append(smallSpinnerImg());
|
||||
var url = "restServices/archivaServices/managedRepositoriesService/deleteManagedRepository?";
|
||||
url += "repositoryId="+encodeURIComponent(managedRepository.id());
|
||||
|
||||
var checked = $("#managedrepository-deletecontent").get(0).checked;
|
||||
|
||||
url += "&deleteContent="+(checked==true?"true":"false");
|
||||
$("#dialog-confirm-modal-body-text" ).html(mediumSpinnerImg());
|
||||
$.ajax(url,
|
||||
{
|
||||
type: "GET",
|
||||
|
@ -381,7 +379,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
|||
displayRestError(res);
|
||||
},
|
||||
complete: function(){
|
||||
removeSmallSpinnerImg();
|
||||
removeMediumSpinnerImg("#dialog-confirm-modal-body-text");
|
||||
closeDialogConfirm();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue