archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1558607 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva: main.js search.js
Date Wed, 15 Jan 2014 23:32:08 GMT
Author: olamy
Date: Wed Jan 15 23:32:07 2014
New Revision: 1558607

URL: http://svn.apache.org/r1558607
Log:
handle null groupId

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js?rev=1558607&r1=1558606&r2=1558607&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
Wed Jan 15 23:32:07 2014
@@ -697,7 +697,7 @@ function(jquery,ui,sammy,tmpl,i18n,jquer
           if (groupId){
             displayBrowseGroupId(groupId);
           } else {
-            displayBrowse(true);
+            displayBrowse(true,null);
           }
         });
         this.get('#browse~:repositoryId/:groupId',function(context){

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js?rev=1558607&r1=1558606&r2=1558607&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
Wed Jan 15 23:32:07 2014
@@ -1532,7 +1532,11 @@ define("archiva.search",["jquery","jquer
         if (selectedRepo){
           location+="~"+selectedRepo;
         }
-        location+="/"+theGroupId+"."+datum.name;
+        if(theGroupId){
+          location+="/"+theGroupId+"."+datum.name;
+        }else{
+          location+="/"+datum.name;
+        }
         $.log("location:"+location);
         window.sammyArchivaApplication.setLocation(location);
       }



Mime
View raw message