aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.datepicker.js
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2008-09-20 06:26:38 +0000
committerKeith Wood <kbwood.au@gmail.com>2008-09-20 06:26:38 +0000
commitaced92a6b483c1f6aed03e31c3df802fe42c319f (patch)
treeebcda61f90c515e455ec27a3cac447548493ad08 /ui/ui.datepicker.js
parente51f56714b715790b63b68bb73066b264b5ffcb4 (diff)
downloadjquery-ui-aced92a6b483c1f6aed03e31c3df802fe42c319f.tar.gz
jquery-ui-aced92a6b483c1f6aed03e31c3df802fe42c319f.zip
Fixed 3266. Datepicker is displayed when using "setDate" and "change" methods
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r--ui/ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
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();
},