Project

General

Profile

Actions

Bug #21794

closed

javascript error in tmenu_layers.php and gmenu_layers.php

Added by Klaus Gössl almost 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-12-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

12923.patch (2.52 KB) 12923.patch Administrator Admin, 2010-03-02 11:47
Actions

Also available in: Atom PDF