summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-01-15 23:31:59 +0000
committerOlivier Lamy <olamy@apache.org>2014-01-15 23:31:59 +0000
commit1e53fcfae976ec75df39a64932f5ee5c2d63d4cc (patch)
tree65164a9a32cef3261609361a2e67766dd2249f61 /archiva-modules/archiva-web
parent0ecc1afd539c9cf34f8ac7f83bb12e08146432b1 (diff)
downloadarchiva-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
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js6
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/search.html2
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>