mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-34433 Check for existence of e and e.target in set_form_changed
This is required for cases when code directly calls set_form_changed as happens with the filepicker.
This commit is contained in:
parent
7c52ee5027
commit
ca4548c1c2
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ YUI.add('moodle-core-formchangechecker',
|
|||
* Set the form changed state to true
|
||||
*/
|
||||
M.core_formchangechecker.set_form_changed = function(e) {
|
||||
if (e.target.hasClass('ignoredirty')) {
|
||||
if (e && e.target && e.target.hasClass('ignoredirty')) {
|
||||
// Don't warn on elements with the ignoredirty class
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue