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>
This commit is contained in:
parent
a7419482c1
commit
6d1b7ff27e
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
//]]>
|
||||
|
|
Loading…
Reference in a new issue