18 Commits

Author SHA1 Message Date
tjhunt
d18675a8d7 quiz: MDL-19891 fix that quiz navigation block that was broken by the blocks changes.
Sadly it now requries JavaScript again, at least for best operation.
2009-07-23 09:20:33 +00:00
samhemelryk
618a452947 mod-quiz MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:46:47 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
tjhunt
692e0c3395 MDL-18521 Countdown timer should be visible on the summary page 2009-03-11 07:10:57 +00:00
tjhunt
1d9673b648 quiz timer js: Fix typo (that was not causing problems) 2009-03-11 07:00:36 +00:00
tjhunt
921c07e5b1 quiz attempt javascript: MDL-16833 the javascript that stops enter from submitting the forum in quiz attempts was broken in HEAD. 2008-10-22 10:26:45 +00:00
tjhunt
03043a3313 quiz timer: MDL-16490 stop the timer when a page is submitted, to avoid nasty double-submission problems. 2008-10-21 08:20:51 +00:00
tjhunt
2930500104 MDL-16706 - eliminate miscellaneous inine JavaScript
This does the quiz (apart from the bloody 'secure' window), the question bank and a couple of others.
2008-09-26 10:49:31 +00:00
tjhunt
ea16a91d2e MDL-12391 Prevent browser autocomplete in the quiz. Acutally, there was already code trying to do that, but it was not working. Fix it in HEAD only, because it is not a big deal, and so much has changed, it is not an easy back-port. 2008-09-19 04:54:49 +00:00
tjhunt
5b3990444d MDL-16263 Improve comment. 2008-09-04 04:52:54 +00:00
tjhunt
c752264fe1 MDL-16263 Flagging questions during a quiz attempt. Update flag state in the navigtion panel when it is updated on the question. 2008-09-03 02:35:56 +00:00
tjhunt
5533791abc MDL-15750 - After the close date, the teacher cannot preview a quiz becuase the timer thinks the time is already up. Also, move the timer in to the new navigation block. 2008-07-22 11:37:01 +00:00
tjhunt
3c168fbb66 MDL-15543 - Display the quiz navigation on the attempt.php page
and most of

MDL-15540 - Write code to render the navigation panel - it does it all apart from working out the correct state in which to show each button, and apply appropriate styles as a result.
2008-07-11 17:03:43 +00:00
tjhunt
92589cb04b MDL-8682 - yet another followup. The javascript still was not quite right. you cannot rely on the case of element.nodeName. 2008-04-17 13:07:36 +00:00
tjhunt
20b8b489ec MDL-8682 - the last commit caused a regression that stopped it working.
!something==somethingelse

is not the same as

something!==somethingelse

in javascript, it seems.
2008-03-31 15:07:14 +00:00
tjhunt
c52c62d1b1 MDL-13806 - Refactor all the code that implements the rules for whether students can attempt the quiz now into some classes.
Resource page now done as well. That should be everything.
2008-03-07 12:33:07 +00:00
tjhunt
4adab2a4a1 MDL-8682 - followup. When disabling the enter key, don't disable it on links. That is bad for accessibility. Merged from MOODLE_19_STABLE. 2007-12-11 16:23:54 +00:00
tjhunt
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