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 <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2021-09-29 12:45:47 +00:00 committed by Jonathan Druart
parent 2047cd98db
commit 95c46c0db5

View file

@ -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();