From af29e710da7ae5368afcb7a2542136f8b3ee2ff8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Nov 2017 16:07:31 -0300 Subject: [PATCH] Bug 7317: use preventDefault to prevent the scrollbar to move to the top Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 86a93a3533..b918fec5a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -196,7 +196,8 @@ } // Toggle request attributes in Illview - $('#toggle_requestattributes').click(function() { + $('#toggle_requestattributes').on('click', function(e) { + e.preventDefault(); $('#requestattributes').toggleClass('content_hidden'); }); -- 2.39.5