cleanup content whent changing artifact

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341223 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-05-21 22:06:37 +00:00
parent eac9ee57f1
commit 719e740c7a
1 changed files with 2 additions and 1 deletions

View File

@ -280,7 +280,8 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
$.get(artifactDownloadInfosUrl,function(data){
$("#artifact-details-files-content" ).html($("#artifact-details-files-content_tmpl").tmpl({artifactDownloadInfos:data}));
mainContent.find("#artifact-content-list-files li" ).on("click",function(){
$("#main-content #artifact_content_tree").html("");
mainContent.find("#artifact_content_tree").html("");
mainContent.find("#artifact-content-text" ).html("");
var idValue = $(this ).attr("id");
var classifier=idValue.substringBeforeLast(":");
var type = idValue.substringAfterLast(":");