From ab7642cebdf6e11ba7c747bbec3fe7f2828c9c12 Mon Sep 17 00:00:00 2001 From: Michael Stucki Date: Sat, 14 May 2005 10:56:05 +0000 Subject: [PATCH] * Fixed a bug in the context-sensitive menu (right-click on 2nd level like "more options..." didn't work). Thanks to Wolfgang Klinger. git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@720 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 6 +++++- typo3/alt_clickmenu.php | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d1e3c4090906..b746f8b242aa 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ +2005-05-14 Michael Stucki + + * Fixed a bug in the context-sensitive menu (right-click on 2nd level like "more options..." didn't work). Thanks to Wolfgang Klinger. + 2005-05-14 Rupert Germann - * fix for bug 797: added a new function to class.tslib_content.php (getBorderAttr()) which returns only a border attribute for images if the doctype is not xhtml_strict, xhtml_11 or xhtml_2 or if the config parameter 'disableImgBorderAttr' is not set. Setting 'disableImgBorderAttr' to '1' will disable border attributes in img tags even if the doctype is not in the list of doctypes above. + * Fixed bug #0000797: added a new function to class.tslib_content.php (getBorderAttr()) which returns only a border attribute for images if the doctype is not xhtml_strict, xhtml_11 or xhtml_2 or if the config parameter 'disableImgBorderAttr' is not set. Setting 'disableImgBorderAttr' to '1' will disable border attributes in img tags even if the doctype is not in the list of doctypes above. 2005-05-12 Michael Stucki diff --git a/typo3/alt_clickmenu.php b/typo3/alt_clickmenu.php index 6f279b21f29e..e8ddfd386cb9 100755 --- a/typo3/alt_clickmenu.php +++ b/typo3/alt_clickmenu.php @@ -1105,8 +1105,12 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay $onClick=eregi_replace('hideCM\(\);','',$onClick); if (!$i[5]) $onClick.='hideEmpty();'; + if ($GLOBALS['TYPO3_CONF_VARS']['BE']['useOnContextMenuHandler']) { + $CSM = ' oncontextmenu="'.htmlspecialchars($onClick).';return false;"'; + } + $out[]=' - + '.(!$this->leftIcons?''.$i[1].''.$i[2].'' : ''.$i[2].''.$i[1].'').' '; } -- 2.20.1