mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
Merge branch 'wip_MDL-46480_m28_footernan' of git://github.com/skodak/moodle
This commit is contained in:
commit
7c27c681b1
@ -332,7 +332,11 @@ M.util.init_maximised_embed = function(Y, id) {
|
||||
if (val == 'auto') {
|
||||
val = el.getComputedStyle(prop);
|
||||
}
|
||||
return parseInt(val);
|
||||
val = parseInt(val);
|
||||
if (isNaN(val)) {
|
||||
return 0;
|
||||
}
|
||||
return val;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user