use selected repository when going use home icon

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308321 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-04-02 12:38:04 +00:00
parent 9071e5a4ca
commit a3507802bc
1 changed files with 6 additions and 1 deletions

View File

@ -470,7 +470,12 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
}
browseRoot=function(){
displayGroupDetail(null,null,"restServices/archivaServices/browseService/rootGroups");
var url="restServices/archivaServices/browseService/rootGroups";
var selectedRepo=getSelectedBrowsingRepository();
if (selectedRepo){
url+="?repositoryId="+encodeURIComponent(selectedRepo);
}
displayGroupDetail(null,null,url);
}
/**