]> source.dussan.org Git - archiva.git/commitdiff
use selected repository when going use home icon
authorOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 12:38:04 +0000 (12:38 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 12:38:04 +0000 (12:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308321 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index 690aabd65d833fb0b537b30df78fbf32d398fd30..5a2adf3ec5fe05dcad4851bc6f77701ce76c5e4f 100644 (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);
   }
 
   /**