}
});
- /**
- * Override the default inDoc method as it is broken in IE
- *
- * YUI Bug: http://yuilibrary.com/projects/yui3/ticket/2529157
- * Example location: lib/yui/3.1.1/build/dom/dom-debug.js
- *
- * Moodle tracker issue to clean this up when required:
- * http://tracker.moodle.org/browse/MDL-23829
- */
- Y.DOM.inDoc = function(element, doc) {
- // there may be multiple elements with the same ID
- doc = doc || element['ownerDocument'];
- var nodes = [],
- ret = false,
- i,
- node;
-
- if (!element.getAttribute('id')) {
- element.setAttribute('id', Y.guid());
- }
- nodes = Y.DOM.allById(element.id, doc);
- for (i = 0; node = nodes[i++];) { // check for a match
- if (node === element) {
- ret = true;
- break;
- }
- }
- return ret;
- };
-
/**
* Calendar class
*
node.on('blur', this.blur_event, this);
return;
}
+ node.on('focus', this.focus_event, this);
node.on('click', this.focus_event, this);
node.after('change', this.set_date_from_selects, this);
}, this);