From 85e4605959d5a4ee44d44cb46979c6fb3874a8e5 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 --- koha-tmpl/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 d048a84..18d6654 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.9.3