Fix option setter

This commit is contained in:
Trent Richardson 2011-12-04 11:28:14 -05:00
parent dc15bf6bc5
commit 9af6f920e8

View file

@ -1276,7 +1276,9 @@ $.datepicker._optionDatepicker = function(target, name, value) {
else if (onselect)
tp_inst._defaults.onSelect=onselect;
}
this._base_optionDatepicker(target, name, value);
if (value === undefined)
return this._base_optionDatepicker(target, name);
return this._base_optionDatepicker(target, name, value);
};
//#######################################################################################