[BUGFIX] Replace prototype defer function 98/41998/2
authorFrank Nägler <frank.naegler@typo3.org>
Mon, 27 Jul 2015 19:03:45 +0000 (21:03 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 27 Jul 2015 19:40:53 +0000 (21:40 +0200)
Resolves: #68567
Releases: master
Change-Id: I48d91b7f39e2367f8f101c4e32c4bcd782dbf58f
Reviewed-on: http://review.typo3.org/41998
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Tested-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Element/SelectTreeElement.php

index 87ed3da..f72c414 100644 (file)
@@ -226,9 +226,9 @@ class SelectTreeElement extends AbstractFormElement {
                                ? 'tree' . $id . '.bodyStyle = "max-height: ' . $autoSizeMax . 'px;min-height: ' . $height . 'px;";'
                                : 'tree' . $id . '.height = ' . $height . ';'
                        ) . LF .
-                       '(function() {
-                                       tree' . $id . '.render("tree_' . $id . '");
-                               }).defer(200);
+                       'window.setTimeout(function() {
+                               tree' . $id . '.render("tree_' . $id . '");
+                       }, 200);
                ');
                $formField = '
                        <div class="typo3-tceforms-tree">