diff options
author | Olivier Lamy <olamy@apache.org> | 2014-01-15 23:31:59 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-01-15 23:31:59 +0000 |
commit | 1e53fcfae976ec75df39a64932f5ee5c2d63d4cc (patch) | |
tree | 65164a9a32cef3261609361a2e67766dd2249f61 | |
parent | 0ecc1afd539c9cf34f8ac7f83bb12e08146432b1 (diff) | |
download | archiva-1e53fcfae976ec75df39a64932f5ee5c2d63d4cc.tar.gz archiva-1e53fcfae976ec75df39a64932f5ee5c2d63d4cc.zip |
fixing moving to groupId browsing when selected from typeahead
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1558606 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js | 6 | ||||
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/search.html | 2 |
2 files changed, 4 insertions, 4 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 19796af3b..f035b6f1c 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 @@ -1424,7 +1424,7 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn enableAutocompleBrowse=function(groupId){ $.log("enableAutocompleBrowse with groupId:'"+groupId+"'"); - $("#select_browse_repository" ).select2({width: "resolve"}); + $("#select_browse_repository").select2({width: "resolve"}); // browse-autocomplete var url="restServices/archivaServices/browseService/rootGroups"; if (groupId){ @@ -1532,8 +1532,8 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn if (selectedRepo){ location+="~"+selectedRepo; } - location+="/"+datum.name; - //browseBox.typeahead('destroy'); + location+="/"+theGroupId+"."+datum.name; + $.log("location:"+location); window.sammyArchivaApplication.setLocation(location); } diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/search.html b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/search.html index 785763f26..821ca5b84 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/search.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/search.html @@ -118,7 +118,7 @@ {{if number>0}} <span class="divider" id="browse-autocomplete-divider">/</span> {{/if}} - <input type="text" class="input-large twitter-typeahead" size="50" id="browse-autocomplete"/> + <input type="text" class="twitter-typeahead" size="50" id="browse-autocomplete"/> </li> </ul> |