mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-19756 Refactored JS code from SCORM and choice modules into the core function submit_form_by_id()
This commit is contained in:
parent
a19f419db2
commit
dc58020794
5 changed files with 27 additions and 19 deletions
|
@ -198,13 +198,12 @@
|
|||
echo '<a href="javascript:select_all_in(\'DIV\',null,\'scormtablecontainer\');">'.get_string('selectall', 'quiz').'</a> / ';
|
||||
echo '<a href="javascript:deselect_all_in(\'DIV\',null,\'scormtablecontainer\');">'.get_string('selectnone', 'quiz').'</a> ';
|
||||
echo ' ';
|
||||
$PAGE->requires->js('mod/scorm/scorm.js');
|
||||
$selectmenu = new moodle_select_menu();
|
||||
$selectmenu->options = array('delete' => get_string('delete'));
|
||||
$selectmenu->name = 'action';
|
||||
$selectmenu->button->label = get_string('withselected', 'quiz');
|
||||
$selectmenu->id = 'menuaction';
|
||||
$selectmenu->add_action('change', 'submit_attempts_form');
|
||||
$selectmenu->add_action('change', 'submit_form_by_id', array('id' => 'attemptsform', 'selectid' => 'menuaction'));
|
||||
echo $OUTPUT->select_menu($selectmenu);
|
||||
echo '<noscript id="noscriptmenuaction" style="display: inline;">';
|
||||
echo '<div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue