Fixed timepicker() to work with no params passed
This commit is contained in:
parent
ec7678e567
commit
ba3d8a86bd
3
jquery-ui-timepicker-addon.js
vendored
3
jquery-ui-timepicker-addon.js
vendored
|
@ -462,7 +462,8 @@ $.fn.extend({
|
||||||
timepicker: function(o) {
|
timepicker: function(o) {
|
||||||
var tmp_args = arguments;
|
var tmp_args = arguments;
|
||||||
|
|
||||||
if (typeof o == 'object') o = $.extend(o, { timeOnly: true });
|
if(o === undefined) o = { timeOnly: true };
|
||||||
|
else if (typeof o == 'object') o = $.extend(o, { timeOnly: true });
|
||||||
|
|
||||||
return this.each(function() {
|
return this.each(function() {
|
||||||
$(this).datetimepicker(o, tmp_args[1], tmp_args[2], tmp_args[3], tmp_args[4]);
|
$(this).datetimepicker(o, tmp_args[1], tmp_args[2], tmp_args[3], tmp_args[4]);
|
||||||
|
|
Loading…
Reference in a new issue