MDL-64324 question: do not expect form id to be mform1

This commit is contained in:
Marina Glancy 2019-01-23 17:37:52 +01:00
parent 324c4f0556
commit 48f9ebcd62
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View 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)];
},

File diff suppressed because one or more lines are too long

View 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)];
},