Skip to content

Commit 749e97b

Browse files
committed
Fix to prevent datetimepicker from closing when date is chosen (bug introduced in earlier commit)
1 parent 4d6402a commit 749e97b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* jQuery timepicker addon
33
* By: Trent Richardson [http://trentrichardson.com]
44
* Version 0.8.1
5-
* Last Modified: 11/21/2010 by Charles Phillips
5+
* Last Modified: 11/26/2010 by Charles Phillips
66
*
77
* Copyright 2010 Trent Richardson
88
* Dual licensed under the MIT and GPL licenses.
@@ -574,8 +574,8 @@ $.datepicker._selectDate = function (id, dateStr) {
574574

575575
if (tp_inst) {
576576
inst.inline = inst.stay_open = true;
577-
inst.stay_open = inst.inline = false;
578577
this._base_selectDate(id, dateStr);
578+
inst.inline = inst.stay_open = false;
579579
this._notifyChange(inst);
580580
this._updateDatepicker(inst);
581581
}

0 commit comments

Comments
 (0)