mirror of https://github.com/apache/archiva.git
use local value for filtering of current descendant
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1565993 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b99013fe90
commit
e35a0bef37
|
@ -235,7 +235,7 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn
|
||||||
var browseViewModel = new BrowseViewModel(browseResultEntries,parentBrowseViewModel,groupId,repositoryId,feedsUrl);
|
var browseViewModel = new BrowseViewModel(browseResultEntries,parentBrowseViewModel,groupId,repositoryId,feedsUrl);
|
||||||
ko.applyBindings(browseViewModel,browseBreadCrumb.get(0));
|
ko.applyBindings(browseViewModel,browseBreadCrumb.get(0));
|
||||||
ko.applyBindings(browseViewModel,browseResult.get(0));
|
ko.applyBindings(browseViewModel,browseResult.get(0));
|
||||||
enableAutocompleBrowse(groupId);
|
enableAutocompleBrowse(groupId,browseResultEntries);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1381,7 +1381,7 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn
|
||||||
var browseViewModel = new BrowseViewModel(browseResultEntries,null,null,repositoryId);
|
var browseViewModel = new BrowseViewModel(browseResultEntries,null,null,repositoryId);
|
||||||
ko.applyBindings(browseViewModel,mainContent.find("#browse_breadcrumb").get(0));
|
ko.applyBindings(browseViewModel,mainContent.find("#browse_breadcrumb").get(0));
|
||||||
ko.applyBindings(browseViewModel,mainContent.find("#browse_result").get(0));
|
ko.applyBindings(browseViewModel,mainContent.find("#browse_result").get(0));
|
||||||
enableAutocompleBrowse();
|
enableAutocompleBrowse(null,browseResultEntries);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1423,7 +1423,7 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
enableAutocompleBrowse=function(groupId){
|
enableAutocompleBrowse=function(groupId,entries){
|
||||||
$.log("enableAutocompleBrowse with groupId:'"+groupId+"'");
|
$.log("enableAutocompleBrowse with groupId:'"+groupId+"'");
|
||||||
$("#select_browse_repository").select2({width: "resolve"});
|
$("#select_browse_repository").select2({width: "resolve"});
|
||||||
// browse-autocomplete
|
// browse-autocomplete
|
||||||
|
@ -1441,13 +1441,10 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn
|
||||||
browseBox.typeahead(
|
browseBox.typeahead(
|
||||||
{
|
{
|
||||||
name: 'browse-result-'+$.now() ,////hack to avoid local storage caching
|
name: 'browse-result-'+$.now() ,////hack to avoid local storage caching
|
||||||
local: [],
|
local: entries? entries : [],
|
||||||
remote: {
|
remote: {
|
||||||
url: url,
|
url: url,
|
||||||
cache: false,
|
cache: false,
|
||||||
beforeSend: function(jqXhr){
|
|
||||||
$.log("beforeSend browseBox.val():'"+browseBox.val()+"'");
|
|
||||||
},
|
|
||||||
filter: function(parsedResponse){
|
filter: function(parsedResponse){
|
||||||
var request = browseBox.val();
|
var request = browseBox.val();
|
||||||
$.log("filter:"+request);
|
$.log("filter:"+request);
|
||||||
|
|
Loading…
Reference in New Issue