From: Olivier Lamy Date: Fri, 16 Nov 2012 14:22:52 +0000 (+0000) Subject: display spinner when deleting remote repository X-Git-Tag: archiva-1.4-M4~626 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=92a365ef17f3760a7bcf80a7069acd9c52c28519;p=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 --- 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 701056d7a..1c071745e 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 @@ -966,7 +966,9 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) { removeRemoteRepository=function(remoteRepository){ clearUserMessages(); 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", success: function(data) { @@ -978,6 +980,7 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) { displayRestError(res); }, complete:function(){ + removeMediumSpinnerImg($("#dialog-confirm-modal-body-text" )); closeDialogConfirm(); } }