From e422de7b62322b2637ac5623d102563dd3e82b36 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 20 Sep 2016 11:06:23 +0100 Subject: [PATCH] Bug 17315: (Bug 17210 follow-up) Fix "Save to lists" links from the result page On bug 17210, the selector .addtoshelf should not have caught the .addtoshelf nodes from the result list. To fix this, we just need to make the selector more specific (and cannot reuse it without more changes, the biblionumber variable is not the same - vs SEARCH_RESULT.biblionumber). Test plan: Make sure the 2 links (from detail and search result) "Save to lists" and "Save to your lists" work as expected. Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7f3ba13ab2..1a1337087c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -154,7 +154,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip); window.print(); return false; }); - $(".addtoshelf").on("click",function(){ + $("#ulactioncontainer > ul > li > a.addtoshelf").on("click",function(){ Dopop('opac-addbybiblionumber.pl?biblionumber=[% biblionumber %]'); return false; }); -- 2.39.5