Applied fix by monjudoh in _setDateDatepicker

This commit is contained in:
Trent Richardson 2010-12-09 07:52:34 -05:00
parent 678fa35243
commit 077e416044

View file

@ -724,7 +724,7 @@ $.datepicker._setTimeDatepicker = function(target, date, withDate) {
$.datepicker._base_setDateDatepicker = $.datepicker._setDateDatepicker; $.datepicker._base_setDateDatepicker = $.datepicker._setDateDatepicker;
$.datepicker._setDateDatepicker = function(target, date) { $.datepicker._setDateDatepicker = function(target, date) {
var inst = this._getInst(target), var inst = this._getInst(target),
tp_date = new Date(date.getTime()); tp_date = !!date ? new Date(date.getTime()) : date;
this._updateDatepicker(inst); this._updateDatepicker(inst);
this._base_setDateDatepicker.apply(this, arguments); this._base_setDateDatepicker.apply(this, arguments);