Commit f5bbc235 authored by sgalinsk's avatar sgalinsk

[BUGFIX] Replace the usage of the onLoad event

Fixes: #29194


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pmkshadowbox/trunk@76533 735d13b6-9817-0410-8766-e36946ffe9aa
parent 9e1de6bb
......@@ -96,21 +96,16 @@ page.headerData.1233 {
value = shadowBoxInit();
}
# image map initialisation
# image map initialisation
40 = TEXT
40 {
value (
function shadowBoxSetup() {
Shadowbox.onReady = function() {
var shadowBoxElements = document.getElementsByTagName('area');
if (shadowBoxElements.length) {
Shadowbox.setup(shadowBoxElements, {$plugin.pmkshadowbox.imageMapOptions});
}
}
if (window.addEventListener) {
window.addEventListener('load', shadowBoxSetup, false);
} else if (window.attachEvent) {
window.attachEvent('onload', shadowBoxSetup);
}
)
override = ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment