From 3c81b82b4b4baf930ff76cb21a041480b1404a6b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Mar 2017 15:45:57 -0300 Subject: [PATCH] Bug 4969: Do not jump to the top on click Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt index d048a84826..18d6654770 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt @@ -34,12 +34,14 @@ $(document).ready(function() { $(this).find("legend").html(legend); }); $("#show_all_vendors").hide(); - $("#show_active_vendors").click(function(){ + $("#show_active_vendors").on('click', function(e){ + e.preventDefault(); $(".inactive").hide(); $("#show_active_vendors").hide(); $("#show_all_vendors").show(); }); - $("#show_all_vendors").click(function(){ + $("#show_all_vendors").on('click', function(e){ + e.preventDefault(); $(".inactive").show(); $("#show_all_vendors").hide(); $("#show_active_vendors").show(); -- 2.39.5