From ee2821c91da150bed9e07fd525c508951f3b62b2 Mon Sep 17 00:00:00 2001 From: Trent Date: Sun, 14 Nov 2010 22:19:01 -0500 Subject: [PATCH] Polished timepicker if numberOfMonths > 1 --- jquery-ui-timepicker-addon.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 227a26d..4d4f2bb 100755 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -449,7 +449,12 @@ ); } - $dp.find('.ui-datepicker-calendar:first').after($tp); + if (this.defaults.showButtonPanel) { + $dp.find('.ui-datepicker-buttonpane').before($tp); + } + else { + $dp.append($tp); + } tp_inst.$timeObj = $('#ui_tpicker_time_' + dp_inst.id);