[CLEANUP] Use t3js class for resizeable textareas 25/35925/2
authorBenjamin Kott <benjamin.kott@wfp2.com>
Fri, 9 Jan 2015 11:28:38 +0000 (12:28 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 9 Jan 2015 12:12:28 +0000 (13:12 +0100)
We are going to remove tceform classes from the
form engine, to remain js functionality all javascript
selectors need to be prefixed with t3js.

Releases: master
Resolves: #64209
Change-Id: Ib7717678dd39c6ab0d4a3fb09ace816bd3d7ff20
Reviewed-on: http://review.typo3.org/35925
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Element/TextElement.php
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js

index 351f7f2..e9c3ba4 100644 (file)
@@ -174,9 +174,9 @@ class TextElement extends AbstractFormElement {
                                }
 
                                if (!empty($classes)) {
-                                       $class = ' class="tceforms-textarea ' . implode(' ', $classes) . '"';
+                                       $class = ' class="tceforms-textarea t3js-formengine-textarea ' . implode(' ', $classes) . '"';
                                } else {
-                                       $class = ' class="tceforms-textarea"';
+                                       $class = ' class="tceforms-textarea t3js-formengine-textarea"';
                                }
 
                                foreach ($evalList as $func) {
index bc381d4..20c12b9 100644 (file)
@@ -631,7 +631,7 @@ define('TYPO3/CMS/Backend/FormEngine', ['jquery'], function ($) {
         * convert all textareas so they grow when it is typed in.
         */
        FormEngine.convertTextareasResizable = function() {
-               var $elements = $('.tceforms-textarea');
+               var $elements = $('.t3js-formengine-textarea');
                if (TYPO3.settings.Textarea.autosize && $elements.length) {
                        require(['jquery/jquery.autosize.min'], function() {
                                $elements.autosize();