Skip to content

Commit 218b45d

Browse files
committed
Update jquery-ui-timepicker-addon.js
1 parent 2b2e473 commit 218b45d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,22 @@ $.fn.extend({
764764
$.fn.datetimepicker.apply($(this), tmp_args);
765765
});
766766
},
767+
768+
//########################################################################
769+
// shorthand just to use timepicker_with_hours..
770+
//########################################################################
771+
timepicker_with_days2: function(o) {
772+
o = o || {};
773+
var tmp_args = arguments;
774+
775+
if (typeof o == 'object') tmp_args[0] = $.extend(o, { timeFormat: 'ddd hh:mm:ss', showSecond: true, timeOnly: true, showDay: true,
776+
showTime: false, showTitle: false, dayText: 'Days',
777+
hourText: 'Hours', minuteText: 'Minutes' });
778+
779+
return $(this).each(function() {
780+
$.fn.datetimepicker.apply($(this), tmp_args);
781+
});
782+
},
767783

768784
//########################################################################
769785
// extend timepicker to datepicker

0 commit comments

Comments
 (0)