Limit number of returned search results

This commit is contained in:
2019-05-31 04:01:53 +02:00
parent e51b6ade9a
commit 0de1c52535
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
$("#filter").keyup( function () {
var value = $(this).val().toLowerCase();
//alert(value);
if(value.length >= 3) {
if(value.length >= 1) {
$.getJSON("/api/songs/compl", { search: value }, function (data) {
var items = [];
$.each(data, function (key, val) {