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
This commit is contained in:
Olivier Lamy 2012-06-28 08:30:04 +00:00
parent 4abbc91050
commit d49906e504
1 changed files with 2 additions and 0 deletions

View 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));
});