From 691a689aaa09746e84a87657815e6028a46a15ad Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 20 Sep 2012 21:47:49 +0000 Subject: [PATCH] fix spinner when removing managedRepository git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1388230 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/repositories.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index ac5f12fb5..ced991750 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -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(); } }