From 9c02784fe5d7c3e66334163fa8068406b8bee5c8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 23 Oct 2018 12:08:20 -0300 Subject: [PATCH] Bug 20970: Add preventDefault to avoid trailing # to be added to the url Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 56285f0f64..243ac8ef80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -829,21 +829,25 @@ }); $("#set_managing_library").on("click", function(e){ + e.preventDefault(); $(this).hide(); $("#managing_library_entry").show(); }); - $("#library_entry_cancel").on("click", function(){ + $("#library_entry_cancel").on("click", function(e){ + e.preventDefault(); $("#managing_library_entry").hide(); $("#set_managing_library").show(); }); $("#set_basket_group").on("click", function(e){ + e.preventDefault(); $(this).hide(); $("#basket_grouping").show(); }); - $("#basket_group_cancel").on("click", function(){ + $("#basket_group_cancel").on("click", function(e){ + e.preventDefault(); $("#basket_grouping").hide(); $("#set_basket_group").show(); }); -- 2.39.5