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)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 14 May 2019 18:19:04 +0000 (18:19 +0000)
commit6d1b7ff27eb2d53d637c169c7132a66d546c0124
treef6e28317c92a51c3c763abec1431b81713c10523
parenta7419482c1e08b4de2dd707e4a7c4b3185ebb771
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>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc