Fixed altField option

This commit is contained in:
Trent Richardson 2010-11-16 10:31:46 -05:00
parent ddc0a6af27
commit 3a6666bb9e

View file

@ -508,11 +508,11 @@ $.fn.extend({
tp_inst.ampm = ''; tp_inst.ampm = '';
tp_inst.$input = $(input); tp_inst.$input = $(input);
if (o.altField) { if (o.altField) {
tp_inst.$altinput = $($.datepicker._get(dp_inst, 'altField')) tp_inst.$altInput = $($.datepicker._get(dp_inst, 'altField'))
.css({ cursor: 'pointer' }) .css({ cursor: 'pointer' })
.focus(function(){ .focus(function(){
$input.trigger("focus"); $input.trigger("focus");
}); });
} }
tp_inst.inst = dp_inst; tp_inst.inst = dp_inst;
tp_inst._addTimePicker(); tp_inst._addTimePicker();