]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8682 - yet another followup. The javascript still was not quite right. you cannot...
authortjhunt <tjhunt>
Thu, 17 Apr 2008 13:07:36 +0000 (13:07 +0000)
committertjhunt <tjhunt>
Thu, 17 Apr 2008 13:07:36 +0000 (13:07 +0000)
mod/quiz/quiz.js

index c8c088c4b894ed99503977aa7f54978d9b8f3f45..2ced50fc1c99f5cc8f7f2cdb6fc3572136a4da12 100644 (file)
@@ -21,7 +21,7 @@ are actually on the submit button. Don't stop the user typing things in text are
 function check_enter(e) {
     var target = e.target ? e.target : e.srcElement;
     var keyCode = e.keyCode ? e.keyCode : e.which;
-    if (keyCode==13 && target.nodeName!='a' &&
+    if (keyCode==13 && target.nodeName.toLowerCase()!='a' &&
             (!target.type || !(target.type=='submit' || target.type=='textarea'))) {
         return false;
     } else {