From: tjhunt Date: Wed, 22 Oct 2008 10:26:45 +0000 (+0000) Subject: quiz attempt javascript: MDL-16833 the javascript that stops enter from submitting... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=921c07e5b1e81191173a44511f84646b587d70ba;p=moodle.git quiz attempt javascript: MDL-16833 the javascript that stops enter from submitting the forum in quiz attempts was broken in HEAD. --- diff --git a/mod/quiz/quiz.js b/mod/quiz/quiz.js index cc0d473c6c..afe073758b 100644 --- a/mod/quiz/quiz.js +++ b/mod/quiz/quiz.js @@ -18,9 +18,7 @@ function check_enter(e) { var keyCode = e.keyCode ? e.keyCode : e.which; if (keyCode==13 && target.nodeName.toLowerCase()!='a' && (!target.type || !(target.type=='submit' || target.type=='textarea'))) { - return false; - } else { - return true; + YAHOO.util.Event.preventDefault(e); } }