mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-71644 Quiz: The issues outstanding from MDL-70947.
Issue 1: While essay question's uploading progress, we need to disable submit buttons to prevent submit form event. Issue 2: Enable buttons after pressing cancel button on the popup confirming overwrite file existed.
This commit is contained in:
parent
0b69b37f04
commit
f81cdd42b2
5 changed files with 38 additions and 10 deletions
|
@ -126,6 +126,9 @@ M.core_question_engine.questionformalreadysubmitted = false;
|
|||
* @param button the id of the button in the HTML.
|
||||
*/
|
||||
M.core_question_engine.init_submit_button = function(Y, button) {
|
||||
require(['core_form/submit'], function(submit) {
|
||||
submit.init(button);
|
||||
});
|
||||
var totalQuestionsInPage = document.querySelectorAll('div.que').length;
|
||||
var buttonel = document.getElementById(button);
|
||||
var outeruniqueid = buttonel.closest('.que').id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue