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:
Sören Liebich 2016-05-10 03:59:43 +02:00
parent 5da3d3df15
commit a102ce5a89

View File

@ -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;