From e18d7d2fe8a26866d047efe73ad231481b7f8f63 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 23 Sep 2010 05:30:22 +0000 Subject: [PATCH] mform-dateselector MDL-23829 Removed patch to fix YUI issue that was fixed in 3.2.0 --- lib/form/yui/dateselector/dateselector.js | 31 +---------------------- 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/lib/form/yui/dateselector/dateselector.js b/lib/form/yui/dateselector/dateselector.js index 68d41abc8da..34b76f74b0c 100644 --- a/lib/form/yui/dateselector/dateselector.js +++ b/lib/form/yui/dateselector/dateselector.js @@ -43,36 +43,6 @@ YUI.add('moodle-form-dateselector', function(Y) { } }); - /** - * 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 * @@ -104,6 +74,7 @@ YUI.add('moodle-form-dateselector', function(Y) { 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); -- 2.43.0