Time Remaining Javascript Error

Time Remaining Javascript Error

by Wayne Gallagher -
Number of replies: 7

Has anyone else had a JS error when the time remaining hits 0:00:01?

Error is:

Line: 14
Char: 9
Error: 'document.forms.0.timeup' is null or not an object
Code: 0
URL: http://localhost/moodle/mod/quiz/attempt.php?id=17

Thanks

Average of ratings: -
In reply to Wayne Gallagher

Re: Time Remaining Javascript Error

by Gustav W Delius -
Yes, this was due to an incorrectly closed bracket. I had actually caught the bug already before the release of Moodle 1.5 but then stupidly corrected it only in Moodle 1.6 clown. Now it is fixed also in the Moodle 1.5 branch in CVS.
In reply to Gustav W Delius

Re: Time Remaining Javascript Error

by Wayne Gallagher -

Would you mind telling me where it is pls, just so I dont have to re d/l the whole thing and upgrade, so much easier to manually change it.

Thanks Gustav

In reply to Wayne Gallagher

Re: Time Remaining Javascript Error

by Gustav W Delius -
In reply to Gustav W Delius

Re: Time Remaining Javascript Error

by Wayne Gallagher -
Thank you
In reply to Wayne Gallagher

Re: Time Remaining Javascript Error

by Wayne Gallagher -

Not working for 1.5 release.  I get this error:

Parse error: syntax error, unexpected '}' in ...attempt.php on line 390

which makes sense because all curly braces in that section are opened and then closed without inserting this one mentioned.