I used 'showTimepicker': true, / 'showTimepicker': false, options for showing / hiding time parameters if they are not needed.
some pages have both with time and without time parameters, so I needed to use this option.
when I set to false, it hides the time parameters that it is intended to execute, but overide
$.datepicker._base_gotoToday = $.datepicker._gotoToday;
causes problems. When I click the Today / Now button, it sets the date today, but hides the calendar, and when I click on the input field, nothing happens, only when I click in another place and then click on the input field again, it shows the calendar.
I deleted the line
$('.ui-datepicker-today', $dp).click();
which seems to have solved the problem.
He lost the ability to close when I click the Today button, but I can live with it
Shaakir
source share