Fixed no button panel for multi-month calendar

This commit is contained in:
Trent Richardson 2010-11-16 09:57:32 -05:00
parent e748c89061
commit ddc0a6af27

View file

@ -347,8 +347,9 @@ $.extend(Timepicker.prototype, {
}); });
}); });
} }
if (this._defaults.showButtonPanel) $dp.find('.ui-datepicker-buttonpane').before($tp); var buttonPanel = $dp.find('.ui-datepicker-buttonpane');
if (buttonPanel.length > 0) $dp.find('.ui-datepicker-buttonpane').before($tp);
else $dp.append($tp); else $dp.append($tp);
this.$timeObj = $('#ui_tpicker_time_'+ dp_id); this.$timeObj = $('#ui_tpicker_time_'+ dp_id);