Bug 25492: Your Account Menu button does nothing on mobile devices
authorOwen Leonard <oleonard@myacpl.org>
Sat, 23 May 2020 14:35:45 +0000 (14:35 +0000)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 18 Jun 2020 01:58:00 +0000 (13:58 +1200)
commit1a90ca94ddb5ff170fb0e0ae4ef65fd9ca5bb0fb
tree233f80804f4647a7939dff01b3b1f5d04a3dd9ad
parent392ce9cbd57a916d94dc50487f4f71ee2eabfe08
Bug 25492: Your Account Menu button does nothing on mobile devices

This patch removes some redundant code from the OPAC JavaScript which
was causing problems with the show/hide action on two controls which are
shown only at narrower browser widths: The "Your account" menu shown
when the user is on a user-related page, and the "Refine your search"
menu shown on the search results page.

To test, apply the patch and go to the OPAC. Narrow your browser width
to below 768 pixels.

 - Perform a search.
 - On the search results page you should see a "Refine your search"
   link at the top of the results. Clicking it should expand and
   collapse the facets menu.
 - Log in to the OPAC.
 - On the "Your summary" page there should be a "Your account menu" link
   at the top of the main part of the page. Clicking it should expand
   and collapse the account menu.
 - Verify that these menus display correctly when you widen and narrow
   the browser window.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 9ac43fd97b58120560a33e26509d5acc712c97fb)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5b263c80dc647778bd0a4e23dbfd65167cf4c336)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
koha-tmpl/opac-tmpl/bootstrap/js/script.js