Bugzilla – Attachment 89579 Details for
Bug 22881
Trying to clear search history via the navbar X doesn't clear any searches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22881: Trying to clear search history via the navbar X doesn't clear any searches
Bug-22881-Trying-to-clear-search-history-via-the-n.patch (text/plain), 1.78 KB, created by
Katrin Fischer
on 2019-05-11 09:15:43 UTC
(
hide
)
Description:
Bug 22881: Trying to clear search history via the navbar X doesn't clear any searches
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-05-11 09:15:43 UTC
Size:
1.78 KB
patch
obsolete
>From 77a2bce669d36767e70d5a56eec5efbd4916443f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 10 May 2019 13:24:39 +0000 >Subject: [PATCH] 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> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >index f51f990ef7..ffeebcdb18 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >@@ -199,8 +199,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip); > var biblionumber = $(this).data("biblionumber"); > delSingleRecord( biblionumber ); > }); >- $(".clearsh").on("click", function(e){ >- e.preventDefault(); >+ $(".clearsh").on("click", function(){ > return confirmDelete(MSG_DELETE_SEARCH_HISTORY); > }); > //]]> >-- >2.11.0
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 22881
:
89548
|
89549
| 89579