]> git.koha-community.org Git - koha.git/commit
Bug 22881: Trying to clear search history via the navbar X doesn't clear any searches
authorOwen Leonard <oleonard@myacpl.org>
Fri, 10 May 2019 13:24:39 +0000 (13:24 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 May 2019 13:43:05 +0000 (14:43 +0100)
commitb95682f73549cd9ddda73c61a54a4b45b0443cbe
tree4b6f55aff6307614ec653318ca5ceaa6f0fb97a1
parent41971fd6dafaab903f8b23a89321d82114dac93d
Bug 22881: Trying to clear search history via the navbar X doesn't clear any searches

This patch undoes a mistake introduced in my patch for Bug 21479. A
"preventDefault()" was added to the search history clear button by
mistake. The "confirmDelete" function only works if the default action
of the link is allowed to complete.

To test you must have the EnableOpacSearchHistory system preference
enabled. Apply the patch and log into the OPAC as a patron who has a
search history.

Click the "X" link in the header next to the "Search history" link.
Confirm that you want to clear your search history. The page should
refresh. Navigate to your account -> Your search history to confirm that
your search history has been cleared.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 6d1b7ff27eb2d53d637c169c7132a66d546c0124)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc