Permalink
Browse files

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

…into MOODLE_23_STABLE
  • Loading branch information...
2 parents 218e485 + 10c6db9 commit d5fc9f3d775937625f4df441de03eb77af0d69e6 @nebgor nebgor committed Mar 14, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/yui/formchangechecker/formchangechecker.js
@@ -16,6 +16,9 @@ YUI.add('moodle-core-formchangechecker',
*/
initializer : function(config) {
var formid = 'form#' + this.get('formid');
+ if (!Y.one(formid)) {
+ return;
+ }
// Add change events to the form elements
Y.all(formid + ' input').once('change', M.core_formchangechecker.set_form_changed, this);

0 comments on commit d5fc9f3

Please sign in to comment.