diff options
author | Olivier Lamy <olamy@apache.org> | 2012-04-02 12:38:04 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-04-02 12:38:04 +0000 |
commit | a3507802bc062a721d41ab7c86e0eb7889e9ebf8 (patch) | |
tree | e522d09b5159639dc17724f26267b6fdb837a31d /archiva-modules | |
parent | 9071e5a4cab6611197d0769ed183b59c5840d812 (diff) | |
download | archiva-a3507802bc062a721d41ab7c86e0eb7889e9ebf8.tar.gz archiva-a3507802bc062a721d41ab7c86e0eb7889e9ebf8.zip |
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
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js | 7 |
1 files changed, 6 insertions, 1 deletions
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); } /** |