Don't close datepicker (with time) after selecting the day
authorMarcel Werk <burntime@woltlab.com>
Mon, 28 Jan 2019 15:28:23 +0000 (16:28 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 28 Jan 2019 15:28:23 +0000 (16:28 +0100)
Closes #2839

wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js

index 39551f64f5bdc08870dae2b1c2148c436e0d9d68..2a6a8353ee2047c9ebad4a5ec5ffe3f39a9766f6 100644 (file)
@@ -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();
+                       }
                },
                
                /**