Skip to content

Commit a9dff84

Browse files
Return jquery object at the end of initialization
1 parent 66b95d8 commit a9dff84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@
564564
timepicker: tp // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker');
565565
});
566566

567-
$(this).datepicker(tp.defaults);
567+
return $(this).datepicker(tp.defaults);
568568

569569
};
570570

@@ -575,7 +575,7 @@
575575
if(typeof opts == 'object')
576576
opts = $.extend(opts, { timeOnly: true });
577577

578-
$(this).datetimepicker(opts, arguments[1], arguments[2], arguments[3], arguments[4]);
578+
return $(this).datetimepicker(opts, arguments[1], arguments[2], arguments[3], arguments[4]);
579579
};
580580

581581
//########################################################################

0 commit comments

Comments
 (0)