From b97bf023203dc8716ae58b4de3c59356b1098c7f Mon Sep 17 00:00:00 2001 From: Andreas Allacher <andreas@allacher.com> Date: Mon, 16 Nov 2015 08:29:32 +0100 Subject: [PATCH] [BUGFIX] IE show DatePicker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 13 +++++++++++++ .../Resources/Public/JavaScript/DateTimePicker.js | 2 +- .../sysext/t3skin/Resources/Public/Css/backend.css | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Build/Resources/Public/Less/TYPO3/_main_form.less b/Build/Resources/Public/Less/TYPO3/_main_form.less index 1b09d1ed7c47..93cc5e2e4802 100644 --- a/Build/Resources/Public/Less/TYPO3/_main_form.less +++ b/Build/Resources/Public/Less/TYPO3/_main_form.less @@ -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 // diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js b/typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js index c8d5a8b94c97..e02a5d40342c 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js @@ -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 } }; diff --git a/typo3/sysext/t3skin/Resources/Public/Css/backend.css b/typo3/sysext/t3skin/Resources/Public/Css/backend.css index 056403a625bc..88aef2cb6fdf 100644 --- a/typo3/sysext/t3skin/Resources/Public/Css/backend.css +++ b/typo3/sysext/t3skin/Resources/Public/Css/backend.css @@ -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; } -- GitLab