Bug 7317: use preventDefault to prevent the scrollbar to move to the top
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Nov 2017 19:07:31 +0000 (16:07 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Nov 2017 14:42:16 +0000 (11:42 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt

index 86a93a3..b918fec 100644 (file)
         }
 
         // Toggle request attributes in Illview
-        $('#toggle_requestattributes').click(function() {
+        $('#toggle_requestattributes').on('click', function(e) {
+            e.preventDefault();
             $('#requestattributes').toggleClass('content_hidden');
         });