Skip to content

Commit

Permalink
Merge branch 'MDL-38356-m24' of git://github.com/andrewnicols/moodle …
Browse files Browse the repository at this point in the history
…into MOODLE_24_STABLE
  • Loading branch information
Aparup Banerjee committed Mar 12, 2013
2 parents 484dcc9 + 057f509 commit aebfad5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/yui/formchangechecker/formchangechecker.js
Expand Up @@ -21,6 +21,11 @@ YUI.add('moodle-core-formchangechecker',
initializer : function(config) { initializer : function(config) {
var formid = 'form#' + this.get('formid'); var formid = 'form#' + this.get('formid');


if (!currentform) {
// If the form was not found, then we can't check for changes.
return;
}

// Add change events to the form elements // Add change events to the form elements
var currentform = Y.one(formid); var currentform = Y.one(formid);
currentform.delegate('change', M.core_formchangechecker.set_form_changed, 'input', this); currentform.delegate('change', M.core_formchangechecker.set_form_changed, 'input', this);
Expand Down

0 comments on commit aebfad5

Please sign in to comment.