mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
mod quiz + questions MDL-22370 convert JavaScript to YUI3 and modules.
Note, quiz editing JS has not been done yet.
This commit is contained in:
parent
24f17d7588
commit
ff065f96bc
15 changed files with 418 additions and 478 deletions
|
@ -85,7 +85,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
/// Arrange for the navigation to be displayed.
|
||||
// Initialise the JavaScript.
|
||||
$headtags = $attemptobj->get_html_head_contributions($page);
|
||||
|
||||
// Arrange for the navigation to be displayed.
|
||||
$navbc = $attemptobj->get_navigation_panel('quiz_review_nav_panel', $page, $showall);
|
||||
$firstregion = reset($PAGE->blocks->get_regions());
|
||||
$PAGE->blocks->add_pretend_block($navbc, $firstregion);
|
||||
|
@ -213,7 +216,7 @@
|
|||
/// Form for saving flags if necessary.
|
||||
if ($options->flags == QUESTION_FLAGSEDITABLE) {
|
||||
echo '<form action="' . s($attemptobj->review_url(0, $page, $showall)) .
|
||||
'" method="post"><div>';
|
||||
'" method="post" class="questionflagsaveform"><div>';
|
||||
echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />';
|
||||
}
|
||||
|
||||
|
@ -232,11 +235,11 @@
|
|||
/// Close form if we opened it.
|
||||
if ($options->flags == QUESTION_FLAGSEDITABLE) {
|
||||
echo '<div class="submitbtns">' . "\n" .
|
||||
'<input type="submit" id="savingflagssubmit" name="savingflags" value="' .
|
||||
'<input type="submit" class="questionflagsavebutton" name="savingflags" value="' .
|
||||
get_string('saveflags', 'question') . '" />' .
|
||||
"</div>\n" .
|
||||
"\n</div></form>\n";
|
||||
$PAGE->requires->js_function_call('question_flag_changer.init_flag_save_form', array('savingflagssubmit'));
|
||||
$PAGE->requires->js_init_call('M.mod_quiz.init_review_form', null, false, quiz_get_js_module());
|
||||
}
|
||||
|
||||
/// Print a link to the next page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue