From: Marcel Werk Date: Mon, 28 Jan 2019 15:28:23 +0000 (+0100) Subject: Don't close datepicker (with time) after selecting the day X-Git-Tag: 5.2.0_Alpha_1~342 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05b8f77da12b5d81508d918e9cfebefdad783d1b;p=GitHub%2FWoltLab%2FWCF.git Don't close datepicker (with time) after selecting the day Closes #2839 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js index 39551f64f5..2a6a8353ee 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js @@ -725,7 +725,10 @@ define(['DateUtil', 'EventHandler', 'Language', 'ObjectMap', 'Dom/ChangeListener this._renderGrid(event.currentTarget.textContent); - this._close(); + var data = _data.get(_input); + if (!data.isDateTime) { + this._close(); + } }, /**