aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2015-01-22 22:20:46 +1100
committerOlivier Lamy <olamy@apache.org>2015-01-22 22:20:46 +1100
commit623a5f45045fc1cfacdf6b34aeed4582e88d066c (patch)
treea18cffde729ebe44d1f76db6218d255cf7acbe17
parent66a67966e6d7fc59beb4bd24bc0931b37fafb041 (diff)
downloadarchiva-623a5f45045fc1cfacdf6b34aeed4582e88d066c.tar.gz
archiva-623a5f45045fc1cfacdf6b34aeed4582e88d066c.zip
fix changing repository with chrome
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
index eefdfefa3..c2dd6d780 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
@@ -1398,8 +1398,9 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn
// #browse~internal/org.apache.maven
// or #artifact~snapshots/org.apache.maven.plugins/maven-compiler-plugin
var currentHash=window.location.hash;
- $.log("currentHash:"+currentHash);
+ //$.log("currentHash:"+currentHash);
var newLocation = currentHash.substringBeforeFirst("/");
+ //$.log("changeBrowseRepository newLocation:"+newLocation);
// maybe the current hash contains a repositoryId so remove it
if (newLocation.indexOf("~")>-1){
newLocation=currentHash.substringBeforeFirst("~");
@@ -1407,7 +1408,7 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn
if (selectedRepository){
newLocation+="~"+selectedRepository;
}
- if (currentHash.contains("/")) {
+ if (currentHash.indexOf("/")>-1) {
// MRM-1767
// from all to internal
// #browse -> #browse~internal