From c91e1cc86a2b13bdc6e97a669829b582676154c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 3 Mar 2010 01:31:04 +0000 Subject: [PATCH] Datepicker: Handle empty string for animation duration. Fixes #5259 - DatePicker will not ever close. --- ui/jquery.ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5