Corrected methods

This commit is contained in:
Trent Richardson 2010-11-18 16:58:02 -05:00
parent 5a598298de
commit 88a0b943bc

View file

@ -529,8 +529,8 @@ $.fn.extend({
if (typeof o == 'object') tmp_args[0] = $.extend(o, { timeOnly: true }); if (typeof o == 'object') tmp_args[0] = $.extend(o, { timeOnly: true });
return this.each(function() { return $(this).each(function() {
$.fn.datepicker.apply(this, tmp_args); $.fn.datetimepicker.apply($(this), tmp_args);
}); });
}, },
@ -542,10 +542,14 @@ $.fn.extend({
var $input = this, var $input = this,
tmp_args = arguments; tmp_args = arguments;
if (typeof(o) == 'string') if (typeof(o) == 'string'){
return this.each(function() { if(o == 'getDate')
$.fn.datepicker.apply(this, tmp_args); return $.fn.datepicker.apply($(this), tmp_args);
}); else
return this.each(function() {
$.fn.datepicker.apply($(this), tmp_args);
});
}
else else
return this.each(function() { return this.each(function() {
$(this).datepicker($.timepicker._newInst($input, o)._defaults); $(this).datepicker($.timepicker._newInst($input, o)._defaults);