From 5be73377770fa957c53de991dbd994eaf94d73ad Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 7 Sep 2022 16:09:29 +0200 Subject: [PATCH] fixed #1718 search start at first character input for linked albums --- admin/themes/default/js/picture_modify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/themes/default/js/picture_modify.js b/admin/themes/default/js/picture_modify.js index 4a0e8acac..516eadff4 100644 --- a/admin/themes/default/js/picture_modify.js +++ b/admin/themes/default/js/picture_modify.js @@ -15,7 +15,8 @@ $(document).ready(function () { $("#linkedAlbumSearch .search-cancel-linked-album").hide(); } - if ($(this).val().length > 2) { + // Search input value length required to start searching + if ($(this).val().length > 0) { linked_albums_search($(this).val()); } else { $(".limitReached").html(str_no_search_in_progress);