From 077e41604406d01af7cb0934ab2edc892b3eaa45 Mon Sep 17 00:00:00 2001 From: Trent Richardson Date: Thu, 9 Dec 2010 07:52:34 -0500 Subject: [PATCH] Applied fix by monjudoh in _setDateDatepicker --- jquery-ui-timepicker-addon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index fc174a8..b17f9a0 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -724,7 +724,7 @@ $.datepicker._setTimeDatepicker = function(target, date, withDate) { $.datepicker._base_setDateDatepicker = $.datepicker._setDateDatepicker; $.datepicker._setDateDatepicker = function(target, date) { var inst = this._getInst(target), - tp_date = new Date(date.getTime()); + tp_date = !!date ? new Date(date.getTime()) : date; this._updateDatepicker(inst); this._base_setDateDatepicker.apply(this, arguments);