mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merge branch 'MDL-78874-master' of https://github.com/danghieu1407/moodle
This commit is contained in:
commit
f566bf4601
@ -234,14 +234,15 @@ abstract class qbehaviour_renderer extends plugin_renderer_base {
|
||||
'type' => 'submit',
|
||||
'id' => $qa->get_behaviour_field_name('submit'),
|
||||
'name' => $qa->get_behaviour_field_name('submit'),
|
||||
'value' => get_string('check', 'question'),
|
||||
'value' => 1,
|
||||
'class' => 'submit btn btn-secondary',
|
||||
'data-savescrollposition' => 'true',
|
||||
);
|
||||
if ($options->readonly) {
|
||||
$attributes['disabled'] = 'disabled';
|
||||
}
|
||||
$output = html_writer::empty_tag('input', $attributes);
|
||||
$output = html_writer::tag('button',
|
||||
$options->add_question_identifier_to_label(get_string('check', 'question'), true), $attributes);
|
||||
if (!$options->readonly) {
|
||||
$this->page->requires->js_call_amd('core_question/question_engine', 'initSubmitButton', [$attributes['id']]);
|
||||
}
|
||||
|
@ -1229,7 +1229,7 @@ abstract class qbehaviour_walkthrough_test_base extends question_testcase {
|
||||
} else if ($enabled === false) {
|
||||
$expectedattributes['disabled'] = 'disabled';
|
||||
}
|
||||
return new question_contains_tag_with_attributes('input', $expectedattributes, $forbiddenattributes);
|
||||
return new question_contains_tag_with_attributes('button', $expectedattributes, $forbiddenattributes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user