From b9145961f3c3989f1b62ef2578da6867570b1b05 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 Content-Type: text/plain; charset=utf-8 The test did not work when SearchEngine == Elasticsearch. Test plan: Verify if it works now for Elasticsearch. Signed-off-by: Marcel de Rooy --- 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.20.1