mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-7778 fixed cancel button failing on some pages (I hope)
This commit is contained in:
parent
f24a257d85
commit
1cbb09f1d1
2 changed files with 7 additions and 1 deletions
|
@ -27,7 +27,7 @@ class MoodleQuickForm_cancel extends HTML_QuickForm_submit
|
|||
$value=get_string('cancel');
|
||||
}
|
||||
HTML_QuickForm_submit::HTML_QuickForm_submit($elementName, $value, $attributes);
|
||||
$this->updateAttributes(array('onclick'=>'return this.form.submit();'));
|
||||
$this->updateAttributes(array('onclick'=>'skipClientValidation = true; return true;'));
|
||||
} //end constructor
|
||||
function onQuickFormEvent($event, $arg, &$caller)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue