Skip to content

Commit

Permalink
Merge branch 'MDL-38356-m23' of git://github.com/andrewnicols/moodle …
Browse files Browse the repository at this point in the history
…into MOODLE_23_STABLE
  • Loading branch information
Aparup Banerjee committed Mar 12, 2013
2 parents c2fb582 + ab13a53 commit 771053b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/yui/formchangechecker/formchangechecker.js
Expand Up @@ -17,6 +17,11 @@ YUI.add('moodle-core-formchangechecker',
initializer : function(config) {
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
Y.all(formid + ' input').once('change', M.core_formchangechecker.set_form_changed, this);
Y.all(formid + ' textarea').once('change', M.core_formchangechecker.set_form_changed, this);
Expand Down

0 comments on commit 771053b

Please sign in to comment.