From d61dc26e122c3ec4173bbe43728a090e86985e40 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Fri, 31 Oct 2014 13:56:48 +0800 Subject: [PATCH] MDL-47981 Grade single view: Prevent nasty scroll jumping. --- grade/report/singleview/js/singleview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grade/report/singleview/js/singleview.js b/grade/report/singleview/js/singleview.js index 02d7be898c9..0c377b882a7 100644 --- a/grade/report/singleview/js/singleview.js +++ b/grade/report/singleview/js/singleview.js @@ -12,9 +12,9 @@ M.gradereport_singleview.init = function(Y) { }; }; - link.on('click', function() { + link.on('click', function(e) { + e.preventDefault(); Y.all('input[name^=' + type + ']').each(toggle(link.hasClass('all'))); - return false; }); });