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 });
return this.each(function() {
$.fn.datepicker.apply(this, tmp_args);
return $(this).each(function() {
$.fn.datetimepicker.apply($(this), tmp_args);
});
},
@ -542,10 +542,14 @@ $.fn.extend({
var $input = this,
tmp_args = arguments;
if (typeof(o) == 'string')
if (typeof(o) == 'string'){
if(o == 'getDate')
return $.fn.datepicker.apply($(this), tmp_args);
else
return this.each(function() {
$.fn.datepicker.apply(this, tmp_args);
$.fn.datepicker.apply($(this), tmp_args);
});
}
else
return this.each(function() {
$(this).datepicker($.timepicker._newInst($input, o)._defaults);