From c96c0eb57f9c99bb19d58b2474bb87a214871329 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 --- 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.11.0