From: Olivier Lamy Date: Wed, 15 Jan 2014 04:03:57 +0000 (+0000) Subject: fix filtering X-Git-Tag: archiva-2.0.0-RC1~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40aa29cfb56163c4f8fb14e946cab04cd9c35f2f;p=archiva.git fix filtering git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1558291 13f79535-47bb-0310-9956-ffa450edef68 --- 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 b529814d7..756434a8d 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 @@ -1423,7 +1423,7 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn } enableAutocompleBrowse=function(groupId){ - $.log("enableAutocompleBrowse"); + $.log("enableAutocompleBrowse with groupId:'"+groupId+"'"); $("#select_browse_repository" ).select2({width: "resolve"}); // browse-autocomplete var url="restServices/archivaServices/browseService/rootGroups"; @@ -1441,9 +1441,9 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn { name: 'browse-result', remote: { - url: groupId?url+'/%QUERY':url, + url: url,//groupId?url+'/%QUERY':url, beforeSend: function(jqXhr){ - $.log("beforeSend"); + $.log("beforeSend browseBox.val():'"+browseBox.val()+"'"); }, filter: function(parsedResponse){ var request = browseBox.val(); @@ -1492,10 +1492,12 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn result=browseResultEntries; } var filtered = []; + $.log("filtering with request '"+request+"'"); for(var i=0;i