[BUGFIX] Initialize DateTimePicker on IRRE fields 44/36944/2
authorAndreas Fernandez <andreas.fernandez@aspedia.de>
Mon, 16 Feb 2015 13:50:07 +0000 (14:50 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 16 Feb 2015 14:14:37 +0000 (15:14 +0100)
Reinitialize the DateTimePicker properly by calling the initialize()
method in the callback.

Resolves: #65092
Releases: master
Change-Id: I653dab6d476f6cf65d7739c05141fc73f7217027
Reviewed-on: http://review.typo3.org/36944
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js

index 5471de0..4dd3534 100644 (file)
@@ -654,7 +654,9 @@ define('TYPO3/CMS/Backend/FormEngine', ['jquery'], function ($) {
                        });
                }
                // apply DatePicker to all date time fields
-               require(['TYPO3/CMS/Backend/DateTimePicker']);
+               require(['TYPO3/CMS/Backend/DateTimePicker'], function(DateTimePicker) {
+                       DateTimePicker.initialize();
+               });
                FormEngine.convertTextareasResizable();
        };