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:
jamiesensei 2006-12-05 11:58:43 +00:00
parent d73e265e9a
commit eca038b50b
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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');