Bugzilla – Attachment 125452 Details for
Bug 28821
OPAC Advanced search: Improve operation of button plus/less
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28821: (QA follow-up) Adjust javascript test
Bug-28821-QA-follow-up-Adjust-javascript-test.patch (text/plain), 1.18 KB, created by
Marcel de Rooy
on 2021-09-29 12:48:17 UTC
(
hide
)
Description:
Bug 28821: (QA follow-up) Adjust javascript test
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-09-29 12:48:17 UTC
Size:
1.18 KB
patch
obsolete
>From b9145961f3c3989f1b62ef2578da6867570b1b05 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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 <m.de.rooy@rijksmuseum.nl> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28821
:
123563
|
124790
|
125331
| 125452