Bootstrap DatePicker editor field plugin fix
Bootstrap DatePicker editor field plugin fix
Plugin fails, when i try to edit row where column with date is null.
Function fails on val.getMonth (null passes typeof val === 'object' check).
It can be fixed by improving set function.
From:
if ( typeof val === 'object' && val.getMonth ) {
conf._input.val( val ).datepicker('setDate', val);
}
To:
if ( typeof val === 'object' && val && val.getMonth ) {
conf._input.val( val ).datepicker('setDate', val);
}
This discussion has been closed.
Replies
Sounds good to me - many thanks for this! It will be in the next site update.
Regards,
Allan