MDL-64324 question: do not expect form id to be mform1
authorMarina Glancy <marina@moodle.com>
Wed, 23 Jan 2019 16:37:52 +0000 (17:37 +0100)
committerMarina Glancy <marina@moodle.com>
Wed, 23 Jan 2019 16:37:52 +0000 (17:37 +0100)
question/type/ddimageortext/amd/build/form.min.js
question/type/ddimageortext/amd/src/form.js
question/type/ddmarker/amd/build/form.min.js
question/type/ddmarker/amd/src/form.js

index e981a66..d80c770 100644 (file)
Binary files a/question/type/ddimageortext/amd/build/form.min.js and b/question/type/ddimageortext/amd/build/form.min.js differ
index e9538c5..da384b7 100644 (file)
@@ -450,7 +450,7 @@ define(['jquery', 'core/dragdrop'], function($, dragDrop) {
             },
 
             getEl: function(name, indexes) {
-                var form = document.getElementById('mform1');
+                var form = $('form.mform')[0];
                 return form.elements[this.toNameWithIndex(name, indexes)];
             },
 
index 4843ef7..794cf3a 100644 (file)
Binary files a/question/type/ddmarker/amd/build/form.min.js and b/question/type/ddmarker/amd/build/form.min.js differ
index a6ef0bd..c2951e8 100644 (file)
@@ -664,7 +664,7 @@ define(['jquery', 'core/dragdrop', 'qtype_ddmarker/shapes'], function($, dragDro
             },
 
             getEl: function(name, indexes) {
-                var form = document.getElementById('mform1');
+                var form = $('form.mform')[0];
                 return form.elements[this.toNameWithIndex(name, indexes)];
             },