aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-06-28 08:30:04 +0000
committerOlivier Lamy <olamy@apache.org>2012-06-28 08:30:04 +0000
commitd49906e50447f6a4b2c29fae5cf28391cb9ea10d (patch)
tree6543bc7f791867ed22ffe3ef25e9e80355a9fef8 /archiva-modules
parent4abbc9105048f42f2bf8e6351272c1c8c7496f3c (diff)
downloadarchiva-d49906e50447f6a4b2c29fae5cf28391cb9ea10d.tar.gz
archiva-d49906e50447f6a4b2c29fae5cf28391cb9ea10d.zip
display a small spinner while reloading datas from server
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1354858 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
index 8c0ccc4e2..58557c5b3 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
@@ -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));
});