Fix to prevent datetimepicker from closing when date is chosen (bug introduced in earlier commit)

This commit is contained in:
doublerebel 2010-11-26 15:16:06 -08:00
parent 4d6402ad97
commit 749e97b72a

View file

@ -2,7 +2,7 @@
* jQuery timepicker addon * jQuery timepicker addon
* By: Trent Richardson [http://trentrichardson.com] * By: Trent Richardson [http://trentrichardson.com]
* Version 0.8.1 * Version 0.8.1
* Last Modified: 11/21/2010 by Charles Phillips * Last Modified: 11/26/2010 by Charles Phillips
* *
* Copyright 2010 Trent Richardson * Copyright 2010 Trent Richardson
* Dual licensed under the MIT and GPL licenses. * Dual licensed under the MIT and GPL licenses.
@ -574,8 +574,8 @@ $.datepicker._selectDate = function (id, dateStr) {
if (tp_inst) { if (tp_inst) {
inst.inline = inst.stay_open = true; inst.inline = inst.stay_open = true;
inst.stay_open = inst.inline = false;
this._base_selectDate(id, dateStr); this._base_selectDate(id, dateStr);
inst.inline = inst.stay_open = false;
this._notifyChange(inst); this._notifyChange(inst);
this._updateDatepicker(inst); this._updateDatepicker(inst);
} }