Bug #21794
closedjavascript error in tmenu_layers.php and gmenu_layers.php
0%
Description
ie alerts a javascript error sometimes, whe the mouse is moved during pageload
there is a small timespan when the mousemovehandler is already registered but the script not loaded.
a try/catch construt fixes this:patch for tmenu_layers below, gmenu_layers is simmilar
427,428c427,428
< $GLOBALS['TSFE']->JSeventFuncCalls['onmousemove']['GL_getMouse(e)']= 'try{GL_getMouse(e);}catch(ex){};'; // Should be called BEFORE any of the 'local' getMouse functions!
< $GLOBALS['TSFE']->JSeventFuncCalls['onmousemove'][$this->WMid]= 'try{GL'.$this->WMid.'_getMouse(e);}catch(ex){};';
---
$GLOBALS['TSFE']->JSeventFuncCalls['onmousemove']['GL_getMouse(e)']= 'GL_getMouse(e);'; // Should be called BEFORE any of the 'local' getMouse functions!
(issue imported from #M12923)
Files
Updated by Bart Dubelaar almost 15 years ago
Experiencing the same issue. Would be nice if the patch can be included in a future release.
Updated by Marc-Olivier Murray over 14 years ago
Got the same problem here. The patch resolved the issue. Thanks!
Updated by Benni Mack over 14 years ago
Hey,
I attached a patch in a unified diff format. Please check the patch and give your +1 in the core list, so it will be included in the next patch level releases.
Updated by Benni Mack over 14 years ago
committed to trunk (rev 7658).
committed to TYPO3_4-3 (rev 7659).
committed to TYPO3_4-2 (rev 7660).