[AMOS commit] quiz/question javascript MDL-24170 Enter in a shortanswer question preview should not flag the question. That bit of JavaScript from mod/quiz/attempt.php is needed in question preview too, so refactor a bit.

[AMOS commit] quiz/question javascript MDL-24170 Enter in a shortanswer question preview should not flag the question. That bit of JavaScript from mod/quiz/attempt.php is needed in question preview too, so refactor a bit.

by AMOS bot -
Number of replies: 0
Author: Tim Hunt
quiz/question javascript MDL-24170 Enter in a shortanswer question preview should not flag the question. That bit of JavaScript from mod/quiz/attempt.php is needed in question preview too, so refactor a bit.
I was disappointed to find that the
$PAGE->requires->js_module('core_question_engine');
line was needed in quiz_get_js_module, but it seems to be.

Also change non-Moodle-y string "End test..." to "Finish attempt..."


http://git.moodle.org/gw?p=moodle.git;a=commit;h=157434a522e55d3a8010c3530b290ae35e6a7992
http://github.com/moodle/moodle/commit/157434a522e55d3a8010c3530b290ae35e6a7992

+ 2.0 en [finishattemptdots,mod_quiz]