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 #1

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.

Actions #2

Updated by Marc-Olivier Murray over 14 years ago

Got the same problem here. The patch resolved the issue. Thanks!

Actions #3

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.

See http://typo3.org/teams/core/core-mailinglist-rules/

Actions #4

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).

Actions #5

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.4.0)
Actions

Also available in: Atom PDF