Show all subnets (scrollable), and sort, in sidebar Prefix search

This commit is contained in:
Oliver Gorwits
2014-02-22 19:11:27 +00:00
parent db24e4af27
commit 32f2e1d5fa
3 changed files with 7 additions and 7 deletions

View File

@@ -43,14 +43,13 @@
});
// activate typeahead on prefix/subnet box
$('#nd_ipinventory-subnet').typeahead({
source: function (query, process) {
return $.get( uri_base + '/ajax/data/subnet/typeahead', { query: query }, function (data) {
return process(data);
$('#nd_ipinventory-subnet').autocomplete({
source: function (request, response) {
return $.get( uri_base + '/ajax/data/subnet/typeahead', request, function (data) {
return response(data);
});
}
,matcher: function () { return true; } // trust backend
,delay: 250
,delay: 150
,minLength: 3
});
});