Commit Graph

16 Commits

Author SHA1 Message Date
fba3ea31bc MDL-8682: Pressing enter when answering a short answer question can submit the wrong one. To fix this, I have disabled the enter key unless the keyboard focus is on a submit button (or inside a text box or HTML editor).
MDL-9451: Quiz answers can be lost if user navigates before page reloads. I am not totally sure I have fixed this, but I hope so. I moved the printing of the hidden form field with the list of questions on the page to the end of the form, so no answers will be processed unless the whole form loaded. Note that you could still lose data, but only if the page takes a really long time to load and you answer the first question and click submit before the whole quiz is loaded.

MDL-11463: The quiz uses two different timers, which is silly. I have removed the javascript that was ocasionally used to put a timer in the browser's title bar. Now we only use the one in the page for all cases.

Because MDL-8682 also needed javascript, I renamed timer.js to quiz.js so it could be a library of all the quiz's JavaScript, and started including it properly with require_js.
2007-09-26 18:15:31 +00:00
86ccf19cdb MDL-9280 - JavaScript countdown timer did not work in 1.8 due to XHTML strict changes. Also, fixing a few more XHTML strrrrict things in attempt.php. Merged from MOODLE_18_STABLE. 2007-04-11 20:07:36 +00:00
66c574c908 replacing fieldsets with divs for small forms 2007-03-02 01:03:50 +00:00
0927589412 Xhtml fixes for MDL-7861. 2007-01-09 09:07:16 +00:00
b7dc225654 MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +00:00
f4ba7e1a54 Bend over for XHTML 1.0 Strict ... MDL-8049
Removed Javascript language attribute tags and added CDATA
2007-01-03 14:44:17 +00:00
3f5abcb20a accessibility fixes 2006-12-14 07:48:40 +00:00
077f381461 accessiblity, associating <th> with respective row or col 2006-12-13 08:24:23 +00:00
cd9ca85409 Timer now uses the client's clock. Patch contributed by Phillip Franks, see bug 4967 2006-03-23 19:32:24 +00:00
09b6a59785 merged from 1.5 2005-10-22 15:46:30 +00:00
ee1fb969c8 Merging in from the MOODLE_15_QUIZREFACTOR branch.
The quiz module now can handle adaptive questions and can render remote questions via RQP web services.
2005-05-06 06:24:04 +00:00
4ffdd3937f direct access to script forbidden SC#58, merged from MOODLE_14_STABLE 2005-01-29 14:18:45 +00:00
d1a6dd2716 short php tags - Bug #1956 2004-09-18 22:36:09 +00:00
68a7b97074 Fixes for quiztimer.
- Lets make cheating more complicated, more javascript based.
- Mark attempt to zero if time limit is exceeded over 60 seconds
2004-06-20 10:57:27 +00:00
b15f577dad Trying to fix Safari bug (NaN). 2004-06-03 12:45:38 +00:00
f41e824f33 QuizTimer modifications added plus necessary files along. 2004-06-02 18:03:05 +00:00