Bug 7317: use preventDefault to prevent the scrollbar to move to the top

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-11-07 16:07:31 -03:00
parent 7d7b0a073d
commit af29e710da
1 changed files with 2 additions and 1 deletions

View File

@ -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');
});