Commit 65141417 authored by Frank Nägler's avatar Frank Nägler Committed by Morton Jonuschat
Browse files

[BUGFIX] Fix JavaScript error for GMENU rollover

Resolves: #75983
Releases: master, 7.6
Change-Id: I9851418d2add84daf326257fa27f91574e532923
Reviewed-on: https://review.typo3.org/47972


Reviewed-by: Sascha Egerer's avatarSascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer's avatarSascha Egerer <sascha@sascha-egerer.de>
Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
parent 44da279c
......@@ -4021,13 +4021,13 @@ class TypoScriptFrontendController
case 'mouseOver':
$this->additionalJavaScript[$key] = ' // JS function for mouse-over
function over(name, imgObj) { //
if (version == "n3" && document[name]) {document[name].src = eval(name+"_h.src");}
if (document[name]) {document[name].src = eval(name+"_h.src");}
else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_h.src");}
else if (imgObj) {imgObj.src = eval(name+"_h.src");}
}
// JS function for mouse-out
function out(name, imgObj) { //
if (version == "n3" && document[name]) {document[name].src = eval(name+"_n.src");}
if (document[name]) {document[name].src = eval(name+"_n.src");}
else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_n.src");}
else if (imgObj) {imgObj.src = eval(name+"_n.src");}
}';
......
Supports Markdown
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