Fixed no button panel for multi-month calendar
This commit is contained in:
parent
e748c89061
commit
ddc0a6af27
3
jquery-ui-timepicker-addon.js
vendored
3
jquery-ui-timepicker-addon.js
vendored
|
@ -348,7 +348,8 @@ $.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);
|
||||||
|
|
Loading…
Reference in a new issue