From: Jeff Segars Date: Fri, 14 Jan 2011 20:33:23 +0000 (+0000) Subject: Fixed bug #17035: Positioning and JS behaviour of the icon to clear input fields... X-Git-Tag: TYPO3_4-5-0rc1~183 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/d7c2a2466354551d149b46b380fb77aabcb681d4 Fixed bug #17035: Positioning and JS behaviour of the icon to clear input fields are suboptimal (Thanks to Jo Hasenau) git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10078 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 111cb3f75e5f..44ce34150ef6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-01-14 Jeff Segars + + * Fixed bug #17035: Positioning and JS behaviour of the icon to clear input fields are suboptimal (Thanks to Jo Hasenau) + 2011-01-14 Francois Suter * Fixed bug #16848: CSH in FlexForms does not work anymore diff --git a/t3lib/class.t3lib_tceforms.php b/t3lib/class.t3lib_tceforms.php index 9acee10a5522..01b82ea1f168 100644 --- a/t3lib/class.t3lib_tceforms.php +++ b/t3lib/class.t3lib_tceforms.php @@ -1169,7 +1169,7 @@ class t3lib_TCEforms { ); // old function "checkbox" now the option to set the date / remove the date if (isset($config['checkbox'])) { - $item .= t3lib_iconWorks::getSpriteIcon('actions-input-clear', array('tag' => 'a', 'class' => 't3-tceforms-input-clearer', 'onclick' => 'document.getElementById(\'' . $inputId . '\').value=\'\';' . implode('', $PA['fieldChangeFunc']))); + $item .= t3lib_iconWorks::getSpriteIcon('actions-input-clear', array('tag' => 'a', 'class' => 't3-tceforms-input-clearer', 'onclick' => 'document.getElementById(\'' . $inputId . '\').value=\'\';document.getElementById(\'' . $inputId . '\').focus();' . implode('', $PA['fieldChangeFunc']))); } $mLgd = ($config['max'] ? $config['max'] : 256); $iOnChange = implode('', $PA['fieldChangeFunc']); diff --git a/typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css b/typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css index d09dc69cf6bb..8ff67bf2b38c 100644 --- a/typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css +++ b/typo3/sysext/t3skin/stylesheets/visual/element_tceforms.css @@ -50,7 +50,7 @@ table#typo3-altdoc-header input, .t3-tceforms-input-wrapper-hover .t3-tceforms-input-clearer { position: absolute; right: 4px; - top: 6px; + top: 28%; z-index: 1000; cursor: pointer; } @@ -59,7 +59,7 @@ table#typo3-altdoc-header input, .t3-tceforms-input-wrapper-datetime-hover .t3-tceforms-input-clearer { position: absolute; right: 24px; - top: 6px; + top: 28%; z-index: 1000; cursor: pointer; } @@ -75,6 +75,7 @@ table#typo3-altdoc-header input, position: relative; z-index: 2000; min-height: 14px; + padding-right: 20px!important; } .t3-tceforms-input-wrapper-hover .t3-tceforms-input-clearer,