hide divs in browse screen when coming from menu

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1305841 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-27 13:47:29 +00:00
parent 2a224bb7dc
commit 99fdd9e7a0
2 changed files with 5 additions and 3 deletions

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

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