]> source.dussan.org Git - archiva.git/commitdiff
cleanup content whent changing artifact
authorOlivier Lamy <olamy@apache.org>
Mon, 21 May 2012 22:06:37 +0000 (22:06 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 21 May 2012 22:06:37 +0000 (22:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341223 13f79535-47bb-0310-9956-ffa450edef68

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

index f4eb806de374334dda6d756180b4d8d07dad76c8..a1443da03e79d3296b886d1e7aa7b5b1b8492351 100644 (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(":");