mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 09:23:09 +02:00
Merge branch 'MDL-74214' of https://github.com/paulholden/moodle
This commit is contained in:
commit
08bae4cce8
lib/form/yui
build/moodle-form-dateselector
src/dateselector/js
@ -80,16 +80,18 @@ M.form.dateselector = {
|
||||
this.panel.render(document.body);
|
||||
|
||||
// Determine the correct zindex by looking at all existing dialogs and menubars in the page.
|
||||
var highestzindex = 0;
|
||||
Y.all(DIALOGUE_SELECTOR + ', ' + MENUBAR_SELECTOR + ', ' + DOT + HAS_ZINDEX).each(function(node) {
|
||||
var zindex = this.findZIndex(node);
|
||||
if (zindex > highestzindex) {
|
||||
highestzindex = zindex;
|
||||
}
|
||||
this.panel.on('focus', function() {
|
||||
var highestzindex = 0;
|
||||
Y.all(DIALOGUE_SELECTOR + ', ' + MENUBAR_SELECTOR + ', ' + DOT + HAS_ZINDEX).each(function(node) {
|
||||
var zindex = this.findZIndex(node);
|
||||
if (zindex > highestzindex) {
|
||||
highestzindex = zindex;
|
||||
}
|
||||
}, this);
|
||||
// Only set the zindex if we found a wrapper.
|
||||
var zindexvalue = (highestzindex + 1).toString();
|
||||
Y.one('#dateselector-calendar-panel').setStyle('zIndex', zindexvalue);
|
||||
}, this);
|
||||
// Only set the zindex if we found a wrapper.
|
||||
var zindexvalue = (highestzindex + 1).toString();
|
||||
Y.one('#dateselector-calendar-panel').setStyle('zIndex', zindexvalue);
|
||||
|
||||
this.panel.on('heightChange', this.fix_position, this);
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -80,16 +80,18 @@ M.form.dateselector = {
|
||||
this.panel.render(document.body);
|
||||
|
||||
// Determine the correct zindex by looking at all existing dialogs and menubars in the page.
|
||||
var highestzindex = 0;
|
||||
Y.all(DIALOGUE_SELECTOR + ', ' + MENUBAR_SELECTOR + ', ' + DOT + HAS_ZINDEX).each(function(node) {
|
||||
var zindex = this.findZIndex(node);
|
||||
if (zindex > highestzindex) {
|
||||
highestzindex = zindex;
|
||||
}
|
||||
this.panel.on('focus', function() {
|
||||
var highestzindex = 0;
|
||||
Y.all(DIALOGUE_SELECTOR + ', ' + MENUBAR_SELECTOR + ', ' + DOT + HAS_ZINDEX).each(function(node) {
|
||||
var zindex = this.findZIndex(node);
|
||||
if (zindex > highestzindex) {
|
||||
highestzindex = zindex;
|
||||
}
|
||||
}, this);
|
||||
// Only set the zindex if we found a wrapper.
|
||||
var zindexvalue = (highestzindex + 1).toString();
|
||||
Y.one('#dateselector-calendar-panel').setStyle('zIndex', zindexvalue);
|
||||
}, this);
|
||||
// Only set the zindex if we found a wrapper.
|
||||
var zindexvalue = (highestzindex + 1).toString();
|
||||
Y.one('#dateselector-calendar-panel').setStyle('zIndex', zindexvalue);
|
||||
|
||||
this.panel.on('heightChange', this.fix_position, this);
|
||||
|
||||
|
20
lib/form/yui/src/dateselector/js/dateselector.js
vendored
20
lib/form/yui/src/dateselector/js/dateselector.js
vendored
@ -76,16 +76,18 @@ M.form.dateselector = {
|
||||
this.panel.render(document.body);
|
||||
|
||||
// Determine the correct zindex by looking at all existing dialogs and menubars in the page.
|
||||
var highestzindex = 0;
|
||||
Y.all(DIALOGUE_SELECTOR + ', ' + MENUBAR_SELECTOR + ', ' + DOT + HAS_ZINDEX).each(function(node) {
|
||||
var zindex = this.findZIndex(node);
|
||||
if (zindex > highestzindex) {
|
||||
highestzindex = zindex;
|
||||
}
|
||||
this.panel.on('focus', function() {
|
||||
var highestzindex = 0;
|
||||
Y.all(DIALOGUE_SELECTOR + ', ' + MENUBAR_SELECTOR + ', ' + DOT + HAS_ZINDEX).each(function(node) {
|
||||
var zindex = this.findZIndex(node);
|
||||
if (zindex > highestzindex) {
|
||||
highestzindex = zindex;
|
||||
}
|
||||
}, this);
|
||||
// Only set the zindex if we found a wrapper.
|
||||
var zindexvalue = (highestzindex + 1).toString();
|
||||
Y.one('#dateselector-calendar-panel').setStyle('zIndex', zindexvalue);
|
||||
}, this);
|
||||
// Only set the zindex if we found a wrapper.
|
||||
var zindexvalue = (highestzindex + 1).toString();
|
||||
Y.one('#dateselector-calendar-panel').setStyle('zIndex', zindexvalue);
|
||||
|
||||
this.panel.on('heightChange', this.fix_position, this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user