From 583c12a5b2e6d473fabb76bf1393e17e02b7d9bf 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. --- 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 7f3ba13..1a13370 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.8.1