From aced92a6b483c1f6aed03e31c3df802fe42c319f Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Sat, 20 Sep 2008 06:26:38 +0000 Subject: [PATCH] Fixed 3266. Datepicker is displayed when using "setDate" and "change" methods --- ui/ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index abb778a83..70da2e560 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -599,7 +599,7 @@ $.extend(Datepicker.prototype, { 'Class']('ui-datepicker-multi'); inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') + 'Class']('ui-datepicker-rtl'); - if (inst.input && inst.input[0].type != 'hidden') + if (inst.input && inst.input[0].type != 'hidden' && inst == $.datepicker._curInst) $(inst.input[0]).focus(); },