summaryrefslogtreecommitdiffstats
path: root/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2010-11-16 09:57:32 -0500
committerTrent Richardson <trentdrichardson@gmail.com>2010-11-16 09:57:32 -0500
commitddc0a6af27353e60e8c4a6d0aef194fe8657bc9d (patch)
tree5fb1f48f8e10412178f7186102adfe699439f8de /jquery-ui-timepicker-addon.js
parente748c89061ac1ee2ca195274da83056b301d5b2d (diff)
downloadjQuery-Timepicker-Addon-ddc0a6af27353e60e8c4a6d0aef194fe8657bc9d.zip
jQuery-Timepicker-Addon-ddc0a6af27353e60e8c4a6d0aef194fe8657bc9d.tar.gz
jQuery-Timepicker-Addon-ddc0a6af27353e60e8c4a6d0aef194fe8657bc9d.tar.bz2
Fixed no button panel for multi-month calendar
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r--jquery-ui-timepicker-addon.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index b91d67d..1092961 100644
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -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);
this.$timeObj = $('#ui_tpicker_time_'+ dp_id);