Merge branch 'MDL-74214' of https://github.com/paulholden/moodle
This commit is contained in:
+11
-9
@@ -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);
|
||||
|
||||
|
||||
+2
-2
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);
|
||||
|
||||
|
||||
+11
-9
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user