MDL-52507 enrol/manual: Generated a smart zIndex

This commit is contained in:
Joseph Inhofer
2016-01-12 12:11:35 -06:00
committed by jinhofer
parent 464f907c4c
commit a0aef397f8
+7
View File
@@ -291,6 +291,13 @@ YUI.add('moodle-enrol_manual-quickenrolment', function(Y) {
y = parseInt(base.get('winHeight'))*0.1;
}
base.setXY([x,y]);
var zindex = 0;
Y.all('.moodle-has-zindex').each(function() {
if (parseInt(this.getComputedStyle('zIndex'), 10) > zindex) {
zindex = parseInt(this.getComputedStyle('zIndex'), 10);
}
});
base.setStyle('zIndex', zindex + 1);
if (this.get(UEP.USERS)===null) {
this.search(e, false);