Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-35675-22' of git://github.com/FMCorz/moodle into MO…

…ODLE_22_STABLE
  • Loading branch information...
commit edd08683b9789b459709bf0f15ec5927fcf07ee3 2 parents f890a6a + d128e28
@danpoltawski danpoltawski authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  lib/form/yui/dateselector/dateselector.js
View
3  lib/form/yui/dateselector/dateselector.js
@@ -115,7 +115,6 @@ YUI.add('moodle-form-dateselector', function(Y) {
M.form.dateselector.currentowner = this;
M.form.dateselector.calendar.cfg.setProperty('mindate', new Date(this.yearselect.firstOptionValue(), 0, 1));
M.form.dateselector.calendar.cfg.setProperty('maxdate', new Date(this.yearselect.lastOptionValue(), 11, 31));
- M.form.dateselector.panel.set('constrain', this.get('node').ancestor('form'));
M.form.dateselector.panel.show();
M.form.dateselector.fix_position();
setTimeout(function(){M.form.dateselector.cancel_any_timeout()}, 100);
@@ -183,7 +182,6 @@ YUI.add('moodle-form-dateselector', function(Y) {
initPanel : function(config) {
this.panel = new Y.Overlay({
visible : false,
- constrain : true,
bodyContent : Y.Node.create('<div id="dateselector-calendar-content"></div>'),
id : 'dateselector-calendar-panel'
});
@@ -244,7 +242,6 @@ YUI.add('moodle-form-dateselector', function(Y) {
},
fix_position : function() {
if (this.currentowner) {
- this.panel.set('constrain', Y.one(document.body));
this.panel.set('align', {
node:this.currentowner.get('node').one('select'),
points:[Y.WidgetPositionAlign.BL, Y.WidgetPositionAlign.TL]
Please sign in to comment.
Something went wrong with that request. Please try again.