From a3507802bc062a721d41ab7c86e0eb7889e9ebf8 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 2 Apr 2012 12:38:04 +0000 Subject: [PATCH] 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 --- .../archiva-webapp-js/src/main/webapp/js/archiva/search.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } /**