From: Olivier Lamy Date: Mon, 2 Apr 2012 12:38:04 +0000 (+0000) Subject: use selected repository when going use home icon X-Git-Tag: archiva-1.4-M3~870 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3507802bc062a721d41ab7c86e0eb7889e9ebf8;p=archiva.git 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 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index 690aabd65..5a2adf3ec 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -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); } /**