mform-dateselector MDL-23829 Removed patch to fix YUI issue that was fixed in 3.2.0
This commit is contained in:
+1
-30
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user