diff options
author | Olivier Lamy <olamy@apache.org> | 2012-09-20 21:47:49 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-09-20 21:47:49 +0000 |
commit | 691a689aaa09746e84a87657815e6028a46a15ad (patch) | |
tree | fe15d6078d2b2cb8e3c1377bde2d1a7c7e5c7c9e | |
parent | 6416aa4ab3a11a8bfe1ef2266239307c06b1999b (diff) | |
download | archiva-691a689aaa09746e84a87657815e6028a46a15ad.tar.gz archiva-691a689aaa09746e84a87657815e6028a46a15ad.zip |
fix spinner when removing managedRepository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1388230 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js | 6 |
1 files 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(); } } |