From a102ce5a892ece659b6e13638bdf83b9120794e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Liebich?= Date: Tue, 10 May 2016 03:59:43 +0200 Subject: [PATCH] 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. --- jquery.datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index f5f2e3e..7ebcb18 100755 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -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;