default date if not set in _setDate
This commit is contained in:
parent
0c56593fb4
commit
45985eebe0
5
jquery-ui-timepicker-addon.js
vendored
5
jquery-ui-timepicker-addon.js
vendored
|
@ -817,6 +817,11 @@
|
|||
$.datepicker._base_setDate = $.datepicker._setDate;
|
||||
$.datepicker._setDate = function(inst, date, noChange) {
|
||||
var tp_inst = $.datepicker._get(inst, 'timepicker');
|
||||
|
||||
if(!date){
|
||||
date = new Date();
|
||||
}
|
||||
|
||||
var tp_date = new Date(date.getYear(), date.getMonth(), date.getDay(), date.getHours(), date.getMinutes(), date.getSeconds());
|
||||
|
||||
$.datepicker._updateDatepicker(inst);
|
||||
|
|
Loading…
Reference in a new issue