Bug #16229

onunload missing in JSeventFuncCalls

Added by old_troelsr over 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-06-12
Due date:
% Done:

0%

TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Would be nice to have onunload as part of the JSeventFuncCalls array.

line #14275 in "tslib/class.tslib_fe.php" ....

var $JSeventFuncCalls = array( // you can add JavaScript functions to each
entry in these arrays. Please see how this is done in the GMENU_LAYERS
script. The point is that many applications on a page can set handlers for
onload, onmouseover and onmouseup
'onmousemove' => array(),
'onmouseup' => array(),
'onload' => array(),
);

Should be....

var $JSeventFuncCalls = array( // you can add JavaScript functions to each
entry in these arrays. Please see how this is done in the GMENU_LAYERS
script. The point is that many applications on a page can set handlers for
onload, onmouseover and onmouseup
'onmousemove' => array(),
'onmouseup' => array(),
'onload' => array(),
'onunload' => array(),
);
(issue imported from #M3655)


Related issues

Duplicated by TYPO3 Core - Feature #16813: JSeventFuncCalls onunload Closed 2006-12-26

History

#1 Updated by Martin Kutschker over 13 years ago

There are other events missing as well, eg onmousedown etc.

#2 Updated by Christoph Koehler almost 13 years ago

just reported this again and provided a patch:
http://bugs.typo3.org/view.php?id=4701

#3 Updated by Michael Stucki over 12 years ago

Fixed in TYPO3 4.1RC2

Also available in: Atom PDF