From e7e892872814cbf707eb3cc486826137897e7edb Mon Sep 17 00:00:00 2001 From: Stanislas Rolland Date: Mon, 21 Jan 2008 16:20:41 +0000 Subject: [PATCH] * Fixed JS error when opening the TYPO3 image browser and proc.plainImageMode is not set git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2943 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 4 ++++ typo3/sysext/rtehtmlarea/ChangeLog | 4 ++++ .../mod4/class.tx_rtehtmlarea_dam_browse_media.php | 8 ++++---- .../mod4/class.tx_rtehtmlarea_select_image.php | 8 ++++---- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 99ad67d8278..f61a176e595 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-21 Stanislas Rolland + + * Fixed JS error when opening the TYPO3 image browser and proc.plainImageMode is not set + 2008-01-21 Ingo Renner * fixed tab borders in TCEforms diff --git a/typo3/sysext/rtehtmlarea/ChangeLog b/typo3/sysext/rtehtmlarea/ChangeLog index 9caef6ef60e..c23f2b93e4a 100644 --- a/typo3/sysext/rtehtmlarea/ChangeLog +++ b/typo3/sysext/rtehtmlarea/ChangeLog @@ -1,3 +1,7 @@ +2008-01-21 Stanislas Rolland + + * Fixed JS error when opening the TYPO3 image browser and proc.plainImageMode is not set + 2008-01-19 Stanislas Rolland * Added feature: Various enhancements to image dialog in htmlArea RTE diff --git a/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php b/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php index 56eaece086b..e4741f37480 100644 --- a/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php +++ b/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_dam_browse_media.php @@ -53,8 +53,8 @@ class tx_rtehtmlarea_dam_browse_media extends tx_dam_browse_media { var $defaultClass; var $plainMaxWidth; var $plainMaxHeight; - var $lockPlainWidth; - var $lockPlainHeight; + var $lockPlainWidth = 'false'; + var $lockPlainHeight = 'false'; var $magicMaxWidth; var $magicMaxHeight; var $imgPath; @@ -433,7 +433,7 @@ class tx_rtehtmlarea_dam_browse_media extends tx_dam_browse_media { .(in_array('alt', $this->removedProperties)?'':' sz+=\'formWidth(20).' />\';') .((!$TYPO3_CONF_VARS['EXTCONF'][$this->extKey]['enableClickEnlarge'] || in_array('clickenlarge', $this->removedProperties))?'':' - sz+=\'\';').' + sz+=\'\';').' sz+=\'\'; sz+=\'\'; return sz; @@ -535,7 +535,7 @@ class tx_rtehtmlarea_dam_browse_media extends tx_dam_browse_media { if (document.imageData.iClickEnlarge.checked) { selectedImageRef.setAttribute("clickenlarge","1"); } else { - selectedImageRef.setAttribute("clickenlarge","0"); + selectedImageRef.removeAttribute("clickenlarge"); } } dialog.close(); diff --git a/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php b/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php index 67923914093..2401bf79dfa 100644 --- a/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php +++ b/typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php @@ -140,8 +140,8 @@ class tx_rtehtmlarea_select_image extends browse_links { var $defaultClass; var $plainMaxWidth; var $plainMaxHeight; - var $lockPlainWidth; - var $lockPlainHeight; + var $lockPlainWidth = 'false'; + var $lockPlainHeight = 'false'; var $magicMaxWidth; var $magicMaxHeight; var $imgPath; @@ -421,7 +421,7 @@ class tx_rtehtmlarea_select_image extends browse_links { .(in_array('alt', $this->removedProperties)?'':' sz+=\'formWidth(20).' />\';') .((!$TYPO3_CONF_VARS['EXTCONF'][$this->extKey]['enableClickEnlarge'] || in_array('clickenlarge', $this->removedProperties))?'':' - sz+=\'\';').' + sz+=\'\';').' sz+=\'\'; sz+=\'\'; return sz; @@ -523,7 +523,7 @@ class tx_rtehtmlarea_select_image extends browse_links { if (document.imageData.iClickEnlarge.checked) { selectedImageRef.setAttribute("clickenlarge","1"); } else { - selectedImageRef.setAttribute("clickenlarge","0"); + selectedImageRef.removeAttribute("clickenlarge"); } } dialog.close(); -- 2.20.1