MDL-47494 ddimageortext: OU-1441 added a refresh button to reload page and especially preview area.
This commit is contained in:
@@ -85,6 +85,11 @@ class qtype_ddimagetoimage_edit_form extends question_edit_form {
|
||||
get_string('previewarea', 'qtype_ddimagetoimage'),
|
||||
get_string('previewareamessage', 'qtype_ddimagetoimage'));
|
||||
|
||||
$mform->registerNoSubmitButton('refresh');
|
||||
$mform->addElement('submit', 'refresh', get_string('refresh', 'qtype_ddimagetoimage'));
|
||||
$mform->addHelpButton('refresh', 'refresh', 'qtype_ddimagetoimage');
|
||||
$mform->closeHeaderBefore('refresh');
|
||||
|
||||
list($imagerepeatsatstart, $imagerepeats) = $this->get_drag_image_repeats();
|
||||
$this->definition_drop_zones($mform, $imagerepeats);
|
||||
$mform->addElement('advcheckbox', 'shuffleanswers', ' ',
|
||||
|
||||
@@ -52,6 +52,8 @@ $string['pleasedraganimagetoeachdropregion'] = 'Your answer is not complete, ple
|
||||
$string['previewarea'] = 'Preview area -';
|
||||
$string['previewareaheader'] = 'Preview';
|
||||
$string['previewareamessage'] = '<ul><li>Select a background image file.</li><li>Select draggable images.</li><li>And define drop zones by selecting an image that the student must drag to the drop zone and drag it to where the student should drag it to.</li></ul>';
|
||||
$string['refresh'] = 'Refresh Preview';
|
||||
$string['refresh_help'] = 'You may need to refresh the preview display if you upload a file with the same name as an existing file and choose to overwrite the existing file.';
|
||||
$string['shuffleimages'] = 'Shuffle Draggable Images';
|
||||
$string['summarisechoice'] = '{$a->no}. {$a->text}';
|
||||
$string['summariseplace'] = '{$a->no}. {$a->text}';
|
||||
|
||||
Reference in New Issue
Block a user