From: Scott González Date: Wed, 3 Mar 2010 01:31:04 +0000 (+0000) Subject: Datepicker: Handle empty string for animation duration. X-Git-Tag: 1.8~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c91e1cc86a2b13bdc6e97a669829b582676154c1;p=jquery-ui.git Datepicker: Handle empty string for animation duration. Fixes #5259 - DatePicker will not ever close. --- diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 03d58681a..e41ae62a3 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -646,7 +646,7 @@ $.extend(Datepicker.prototype, { inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); else inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess); - if (!showAnim) + if (!showAnim || !duration) postProcess(); if (inst.input.is(':visible') && !inst.input.is(':disabled')) inst.input.focus();