[BUGFIX] IE show DatePicker 27/44727/3
authorAndreas Allacher <andreas@allacher.com>
Mon, 16 Nov 2015 07:29:32 +0000 (08:29 +0100)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 16 Nov 2015 16:43:41 +0000 (17:43 +0100)
IE now opens the DatePicker either by clicking
inside the field or on the button.

Change-Id: I1e32d0840ef9f8c7b495888e063765ad55187e39
Resolves: #71588
Releases: master
Reviewed-on: https://review.typo3.org/44727
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Build/Resources/Public/Less/TYPO3/_main_form.less
typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 1b09d1e..93cc5e2 100644 (file)
@@ -60,6 +60,19 @@ span.typo3-moduleHeader img {
        min-width: 2.5em;
 }
 
+
+//
+// IE: ensure DatePicker is opened on button click
+//
+label {
+       .icon {
+               img {
+                       pointer-events: none;
+               }
+       }
+}
+
+
 //
 // Form control additions
 //
index c8d5a8b..e02a5d4 100644 (file)
@@ -26,7 +26,7 @@ define(['jquery'], function ($) {
        var DateTimePicker = {
                options: {
                        fieldSelector: '.t3js-datetimepicker',
-                       format: (opener !== null && typeof opener.top.TYPO3 !== 'undefined' ? opener.top : top).TYPO3.settings.DateTimePicker.DateFormat
+                       format: (opener != null && typeof opener.top.TYPO3 !== 'undefined' ? opener.top : top).TYPO3.settings.DateTimePicker.DateFormat
                }
        };
 
index 056403a..88aef2c 100644 (file)
@@ -12186,6 +12186,9 @@ span.typo3-moduleHeader img {
 .input-group-addon {
   min-width: 2.5em;
 }
+label .icon img {
+  pointer-events: none;
+}
 .form-control {
   min-width: 120px;
 }