Merge branch 'MDL-72216-310' of git://github.com/lucaboesch/moodle into MOODLE_310_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2021-09-08 11:29:16 +02:00
5 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -255,14 +255,14 @@ echo $quba->render_question($slot, $options, $displaynumber);
// Finish the question form.
echo html_writer::start_tag('div', array('id' => 'previewcontrols', 'class' => 'controls'));
echo html_writer::empty_tag('input', $restartdisabled + array('type' => 'submit',
'name' => 'restart', 'value' => get_string('restart', 'question'), 'class' => 'btn btn-secondary'));
'name' => 'restart', 'value' => get_string('restart', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1'));
echo html_writer::empty_tag('input', $finishdisabled + array('type' => 'submit',
'name' => 'save', 'value' => get_string('save', 'question'), 'class' => 'btn btn-secondary',
'name' => 'save', 'value' => get_string('save', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1',
'id' => 'id_save_question_preview'));
echo html_writer::empty_tag('input', $filldisabled + array('type' => 'submit',
'name' => 'fill', 'value' => get_string('fillincorrect', 'question'), 'class' => 'btn btn-secondary'));
'name' => 'fill', 'value' => get_string('fillincorrect', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1'));
echo html_writer::empty_tag('input', $finishdisabled + array('type' => 'submit',
'name' => 'finish', 'value' => get_string('submitandfinish', 'question'), 'class' => 'btn btn-secondary',
'name' => 'finish', 'value' => get_string('submitandfinish', 'question'), 'class' => 'btn btn-secondary mr-1 mb-1',
'id' => 'id_finish_question_preview'));
echo html_writer::end_tag('div');
echo html_writer::end_tag('form');
@@ -36,7 +36,7 @@ M.question.preview.init = function() {
M.core_question_engine.init_form(Y, '#responseform');
// Add a close button to the window.
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary mb-1"/>')
.set('value', M.util.get_string('closepreview', 'question'));
closebutton.on('click', function() {
@@ -1 +1 @@
YUI.add("moodle-question-preview",function(n,e){M.question=M.question||{},M.question.preview=M.question.preview||{},M.question.preview.init=function(){M.core_question_engine.init_form(n,"#responseform");var e=n.Node.create('<input type="button" class="btn btn-secondary"/>').set("value",M.util.get_string("closepreview","question"));e.on("click",function(){window.close()}),n.one("#previewcontrols").append(e),n.on("submit",M.core_question_engine.prevent_repeat_submission,"#mform1",null,n)}},"@VERSION@",{requires:["base","dom","event-delegate","event-key","core_question_engine"]});
YUI.add("moodle-question-preview",function(n,e){M.question=M.question||{},M.question.preview=M.question.preview||{},M.question.preview.init=function(){M.core_question_engine.init_form(n,"#responseform");var e=n.Node.create('<input type="button" class="btn btn-secondary mb-1"/>').set("value",M.util.get_string("closepreview","question"));e.on("click",function(){window.close()}),n.one("#previewcontrols").append(e),n.on("submit",M.core_question_engine.prevent_repeat_submission,"#mform1",null,n)}},"@VERSION@",{requires:["base","dom","event-delegate","event-key","core_question_engine"]});
@@ -36,7 +36,7 @@ M.question.preview.init = function() {
M.core_question_engine.init_form(Y, '#responseform');
// Add a close button to the window.
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary mb-1"/>')
.set('value', M.util.get_string('closepreview', 'question'));
closebutton.on('click', function() {
+1 -1
View File
@@ -34,7 +34,7 @@ M.question.preview.init = function() {
M.core_question_engine.init_form(Y, '#responseform');
// Add a close button to the window.
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary"/>')
var closebutton = Y.Node.create('<input type="button" class="btn btn-secondary mb-1"/>')
.set('value', M.util.get_string('closepreview', 'question'));
closebutton.on('click', function() {