]> source.dussan.org Git - archiva.git/commitdiff
display a small spinner while reloading datas from server
authorOlivier Lamy <olamy@apache.org>
Thu, 28 Jun 2012 08:30:04 +0000 (08:30 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 28 Jun 2012 08:30:04 +0000 (08:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1354858 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index 8c0ccc4e231dc064f996d565ece4a6392176ef7d..58557c5b3c0e9a3f407fda9d0779b1412484a280 100644 (file)
@@ -405,10 +405,12 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
           success:function(data){
             self.artifacts.remove(artifact);
             displaySuccessMessage( $.i18n.prop('artifact.deleted'));
+            $("#main-content #artifact-details-download-content" ).html(smallSpinnerImg());
             // reload datas from server
             var artifactDownloadInfosUrl = "restServices/archivaServices/browseService/artifactDownloadInfos/"+encodeURIComponent(self.artifactVersionDetailViewModel.groupId);
             artifactDownloadInfosUrl+="/"+encodeURIComponent(self.artifactVersionDetailViewModel.artifactId)+"/"+encodeURIComponent(self.artifactVersionDetailViewModel.version);
             artifactDownloadInfosUrl+="?repositoryId="+encodeURIComponent(getSelectedBrowsingRepository());
+
             $.get(artifactDownloadInfosUrl,function(data){
               self.artifacts(mapArtifacts(data));
             });