]> source.dussan.org Git - archiva.git/commitdiff
hide divs in browse screen when coming from menu
authorOlivier Lamy <olamy@apache.org>
Tue, 27 Mar 2012 13:47:29 +0000 (13:47 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 27 Mar 2012 13:47:29 +0000 (13:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1305841 13f79535-47bb-0310-9956-ffa450edef68

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

index cac5f96f18f790e605a632d752f6d080c65d5da0..59172d612b0519b51c399f5a10666bfcb49e3881 100644 (file)
@@ -86,7 +86,7 @@ function() {
           displayBrowseArtifactDetail(splitted[0],splitted[1],null,null);
           return;
         } else if (splitted.length==3) {
-          generaldisplayArtifactDetailsVersionView(splitted[0],splitted[1],splitted[2],repositoryId);
+          generalDisplayArtifactDetailsVersionView(splitted[0],splitted[1],splitted[2],repositoryId);
           return;
         } else {
           displayWarningMessage( $.i18n.prop("shortcut.artifact.illegal"));
index d76cb2d807e08e4df388e19818cd4acbe0255780..690aabd65d833fb0b537b30df78fbf32d398fd30 100644 (file)
@@ -482,6 +482,8 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
     if(freshView){
       mainContent.html($("#browse-tmpl" ).tmpl());
     }
+    mainContent.find("#browse_artifact_detail").hide();
+    mainContent.find("#browse_artifact" ).hide();
     mainContent.find("#browse_result").html(mediumSpinnerImg());
 
     $.ajax("restServices/archivaServices/browseService/userRepositories", {
@@ -1146,11 +1148,11 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
       displayBrowseArtifactDetail(artifact.groupId,artifact.artifactId,null,null);
     }
     artifactDetailView=function(artifact){
-      generaldisplayArtifactDetailsVersionView(artifact.groupId,artifact.artifactId,artifact.version,null);
+      generalDisplayArtifactDetailsVersionView(artifact.groupId,artifact.artifactId,artifact.version,null);
     }
   }
 
-  generaldisplayArtifactDetailsVersionView=function(groupId,artifactId,version,repositoryId){
+  generalDisplayArtifactDetailsVersionView=function(groupId,artifactId,version,repositoryId){
     var mainContent=$("#main-content");
     mainContent.html($("#browse-tmpl" ).tmpl());
     mainContent.find("#browse_result" ).hide();