mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'MDL-83614' of https://github.com/paulholden/moodle
This commit is contained in:
commit
053a0b367b
1 changed files with 4 additions and 7 deletions
|
@ -800,14 +800,10 @@ M.util.add_lightbox = function(Y, node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
node.setStyle('position', 'relative');
|
node.setStyle('position', 'relative');
|
||||||
|
|
||||||
var waiticon = Y.Node.create('<img />')
|
var waiticon = Y.Node.create('<img />')
|
||||||
.setAttrs({
|
.setAttribute('src', M.util.image_url(WAITICON.pix, WAITICON.component))
|
||||||
'src' : M.util.image_url(WAITICON.pix, WAITICON.component)
|
.addClass('icon');
|
||||||
})
|
|
||||||
.setStyles({
|
|
||||||
'position' : 'relative',
|
|
||||||
'top' : '50%'
|
|
||||||
});
|
|
||||||
|
|
||||||
var lightbox = Y.Node.create('<div></div>')
|
var lightbox = Y.Node.create('<div></div>')
|
||||||
.setStyles({
|
.setStyles({
|
||||||
|
@ -817,6 +813,7 @@ M.util.add_lightbox = function(Y, node) {
|
||||||
'height' : '100%',
|
'height' : '100%',
|
||||||
'top' : 0,
|
'top' : 0,
|
||||||
'left' : 0,
|
'left' : 0,
|
||||||
|
'paddingTop': '50%',
|
||||||
'backgroundColor' : 'white',
|
'backgroundColor' : 'white',
|
||||||
'textAlign' : 'center'
|
'textAlign' : 'center'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue