]> git.mjollnir.org Git - moodle.git/commit
quiz editing: MDL-17454 first attemtp, and MDL-18554
authortjhunt <tjhunt>
Tue, 17 Mar 2009 09:51:34 +0000 (09:51 +0000)
committertjhunt <tjhunt>
Tue, 17 Mar 2009 09:51:34 +0000 (09:51 +0000)
commit3e10e4292d297b5e06c162614c7da9531a639e92
tree51d31d0eeba0c68d454dc4e5908215c1851422ea
parentbabcc520a7b5c6a4c17c8af86f1d5901778b0ddc
quiz editing: MDL-17454 first attemtp, and MDL-18554

This is a minimal fix for MDL-18554, I have just added a cancel button and made it work.

The more substantial part of this is MDL-17454, trying to make the quiz editing screen behave appropriately when shuffle questions is on. I am sure Olli will have opinions about this and want to change it further. Rought summary:
* When shufflequestions is off, never restrict manual paging, even if questionsperpage is set.
* When shuffle questions is on:
** Always display the quiz with the defined number of questions per page.
** Remove controls to add things except at the end of the quiz.
** Disable most of the order and paging tab, but still allow the question list to be reordered, in case that helps teachers track which questions they have added.
** Still allow questions to be reordered on the edit tab, but when moving the top question on a page up, reorder with the previous question, rather than moving to the previous page.
* Change the status bar, so that the yellow highlight is reserved for alert information. The more informative stuff is now plain, and moved to under the title. To my mind that associates it more closely with the quiz name. Also it moves Total of grades and Maximum grade closer together.
* JavaScript cleaned up. I learn more about YUI every day.
* Some PHP code clean ups that I forgot to commit separately before making substantive changes.
lang/en_utf8/quiz.php
mod/quiz/addrandom.php
mod/quiz/edit.js
mod/quiz/edit.php
mod/quiz/editlib.php
question/category_form_randomquestion.php
theme/standard/styles_layout.css