mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
changed name of reset element in form from 'reset' to 'resetbutton' so that the element name doesn't conflict with js form method reset.
This commit is contained in:
parent
d73e265e9a
commit
eca038b50b
@ -258,7 +258,7 @@ class assignment_online_edit_form extends moodleform {
|
||||
// buttons
|
||||
$buttonarray = array();
|
||||
$buttonarray[] =& $mform->createElement('submit', 'submitbutton', get_string('savechanges'));
|
||||
$buttonarray[] =& $mform->createElement('reset', 'reset', get_string('revert'));
|
||||
$buttonarray[] =& $mform->createElement('reset', 'resetbutton', get_string('revert'));
|
||||
$buttonarray[] =& $mform->createElement('cancel');
|
||||
|
||||
$mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);
|
||||
|
@ -931,7 +931,7 @@ class assignment_upload_notes_form extends moodleform {
|
||||
// buttons
|
||||
$buttonarray = array();
|
||||
$buttonarray[] =& $mform->createElement('submit', 'submitbutton', get_string('savechanges'));
|
||||
$buttonarray[] =& $mform->createElement('reset', 'reset', get_string('revert'));
|
||||
$buttonarray[] =& $mform->createElement('reset', 'resetbutton', get_string('revert'));
|
||||
$buttonarray[] =& $mform->createElement('cancel');
|
||||
|
||||
$mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);
|
||||
|
@ -51,7 +51,7 @@ class chat_mod_form extends moodleform_mod {
|
||||
|
||||
$buttonarray=array();
|
||||
$buttonarray[] = &$mform->createElement('submit', 'submitbutton', get_string('savechanges'));
|
||||
$buttonarray[] = &$mform->createElement('reset', 'reset', get_string('revert'));
|
||||
$buttonarray[] = &$mform->createElement('reset', 'resetbutton', get_string('revert'));
|
||||
$buttonarray[] = &$mform->createElement('cancel');
|
||||
$mform->addGroup($buttonarray, 'buttonar', '', array(' '), false);
|
||||
$renderer->addStopFieldsetElements('buttonar');
|
||||
|
Loading…
x
Reference in New Issue
Block a user