Merge branch 'MDL-38356-m' of git://github.com/andrewnicols/moodle

This commit is contained in:
Aparup Banerjee
2013-03-12 13:37:25 +08:00
+5
View File
@@ -18,6 +18,11 @@ YUI.add('moodle-core-formchangechecker',
var formid = 'form#' + this.get('formid'),
currentform = Y.one(formid);
if (!currentform) {
// If the form was not found, then we can't check for changes.
return;
}
// Add change events to the form elements
currentform.delegate('change', M.core_formchangechecker.set_form_changed, 'input', this);
currentform.delegate('change', M.core_formchangechecker.set_form_changed, 'textarea', this);