archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject archiva git commit: fix changing repository with chrome
Date Thu, 22 Jan 2015 11:20:58 GMT
Repository: archiva
Updated Branches:
  refs/heads/master 66a67966e -> 623a5f450


fix changing repository with chrome


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/623a5f45
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/623a5f45
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/623a5f45

Branch: refs/heads/master
Commit: 623a5f45045fc1cfacdf6b34aeed4582e88d066c
Parents: 66a6796
Author: Olivier Lamy <olamy@apache.org>
Authored: Thu Jan 22 22:20:46 2015 +1100
Committer: Olivier Lamy <olamy@apache.org>
Committed: Thu Jan 22 22:20:46 2015 +1100

----------------------------------------------------------------------
 .../archiva-webapp/src/main/webapp/js/archiva/search.js         | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/623a5f45/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
----------------------------------------------------------------------
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 eefdfef..c2dd6d7 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


Mime
View raw message