Merge pull request #278 from tomaswindsor/patch-1
Fixes option setter override so it doesn't break option getter.
This commit is contained in:
commit
0a68b5c5dc
1 changed files with 3 additions and 1 deletions
4
jquery-ui-timepicker-addon.js
vendored
4
jquery-ui-timepicker-addon.js
vendored
|
@ -1276,7 +1276,9 @@ $.datepicker._optionDatepicker = function(target, name, value) {
|
||||||
else if (onselect)
|
else if (onselect)
|
||||||
tp_inst._defaults.onSelect=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);
|
||||||
};
|
};
|
||||||
|
|
||||||
//#######################################################################################
|
//#######################################################################################
|
||||||
|
|
Loading…
Reference in a new issue