MDL-40990 quiz: option to require prev Q finished before next shown
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 26 Feb 2015 11:53:00 +0000 (11:53 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 17 Mar 2015 17:16:22 +0000 (17:16 +0000)
commit441d284ada20943b556aaa8d73a6cc3909f04f91
tree0ec869e5670daffe7743f448023df8486dea7856
parentf7785e42b32485de2682a0da2ae7f5ed15c974f8
MDL-40990 quiz: option to require prev Q finished before next shown

Further improvements to this code, including resolving edge cases:

* The new feature can only be used when it is possible for the
previous question in the quiz to be complete.

* Also, this new feature cannot be used in combination with shuffle
questions, because that make no sense; nor in combination with
sequential navigation, because to make that work properly would be a lot
of effort. If someone needs that to work later, it should be possible
for them to implement it.

* There were changes in the edit renderer API, to try to make things
more  consistent, and to make it less likely we will need to change
things again in the future. See mod/quiz/upgrade.txt.

* As part of this change, the styling of the Edit quiz page was tweaked
to make slighly more efficient use of the horizontal space, and to be
more symmetrical.
29 files changed:
mod/quiz/attemptlib.php
mod/quiz/backup/moodle2/backup_quiz_stepslib.php
mod/quiz/classes/output/edit_renderer.php
mod/quiz/classes/structure.php
mod/quiz/db/upgrade.php
mod/quiz/edit_rest.php
mod/quiz/lang/en/quiz.php
mod/quiz/questiondependency.php [deleted file]
mod/quiz/renderer.php
mod/quiz/repaginate.php
mod/quiz/styles.css
mod/quiz/tests/behat/attempt_require_previous.feature [new file with mode: 0644]
mod/quiz/tests/behat/behat_mod_quiz.php
mod/quiz/tests/behat/editing_questiondependency.feature [deleted file]
mod/quiz/tests/behat/editing_require_previous.feature [new file with mode: 0644]
mod/quiz/tests/structure_test.php
mod/quiz/upgrade.txt
mod/quiz/version.php
mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes-debug.js
mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes-min.js
mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes.js
mod/quiz/yui/build/moodle-mod_quiz-util-slot/moodle-mod_quiz-util-slot-debug.js
mod/quiz/yui/build/moodle-mod_quiz-util-slot/moodle-mod_quiz-util-slot-min.js
mod/quiz/yui/build/moodle-mod_quiz-util-slot/moodle-mod_quiz-util-slot.js
mod/quiz/yui/src/toolboxes/js/resource.js
mod/quiz/yui/src/toolboxes/js/section.js
mod/quiz/yui/src/toolboxes/js/toolbox.js
mod/quiz/yui/src/util/js/slot.js
question/engine/questionusage.php