From 95c46c0db5b139d72b198a1f208de67fd9f2df48 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 29 Sep 2021 12:45:47 +0000 Subject: [PATCH] Bug 28821: (QA follow-up) Adjust javascript test The test did not work when SearchEngine == Elasticsearch. Test plan: Verify if it works now for Elasticsearch. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt index f7842ba6ba..79b307fa9e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -544,7 +544,7 @@ $(document).ready(function() { $(document).on("click", '.ButtonLess', function(e) { e.preventDefault(); - if($(this).parent().parent().siblings().length < 2 ) { + if( $("a.ButtonLess").length <= 2 ) { $('.ButtonLess').hide(); } $(this).parent().parent().remove(); -- 2.39.5