mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Today button not working anymore
Fixed a problem with the today button which is not working anymore. As far as I could figure out the reason is "XDSoft_datetime.prototype.setCurrentTime" which is now setting the current time to null which doesn't reset the displayed date. Also double clicking on the today button wasn't working because the "currentDate" variable is null.
This commit is contained in:
parent
5da3d3df15
commit
a102ce5a89
@ -1444,7 +1444,7 @@
|
||||
.find('.xdsoft_today_button')
|
||||
.on('touchend mousedown.xdsoft', function () {
|
||||
datetimepicker.data('changed', true);
|
||||
_xdsoft_datetime.setCurrentTime(0);
|
||||
_xdsoft_datetime.setCurrentTime(0, true);
|
||||
datetimepicker.trigger('afterOpen.xdsoft');
|
||||
}).on('dblclick.xdsoft', function () {
|
||||
var currentDate = _xdsoft_datetime.getCurrentTime(), minDate, maxDate;
|
||||
|
Loading…
Reference in New Issue
Block a user