MDL-47494 ddimageortext: DD markers / onto image: form, drag items before drop zones...
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 2 Dec 2014 18:02:48 +0000 (18:02 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 2 Dec 2014 18:02:48 +0000 (18:02 +0000)
That is a more logical order, and now that sections of the form are
collapsible, it is not necessary to put the drop zones right beside
the preview.

question/type/ddimageortext/edit_ddtoimage_form_base.php

index 5cc6b4b..81b4704 100644 (file)
@@ -67,11 +67,10 @@ abstract class qtype_ddtoimage_edit_form_base extends question_edit_form {
                                                                null, self::file_picker_options());
         $mform->closeHeaderBefore('dropzoneheader');
 
+        // Add the draggable image fields & drop zones to the form.
         list($itemrepeatsatstart, $imagerepeats) = $this->get_drag_item_repeats();
-        $this->definition_drop_zones($mform, $imagerepeats);
-
-        // Add the draggable image fields to the form.
         $this->definition_draggable_items($mform, $itemrepeatsatstart);
+        $this->definition_drop_zones($mform, $imagerepeats);
 
         $this->add_combined_feedback_fields(true);
         $this->add_interactive_settings(true, true);