Editor v1.2.3: Bug caused by typo when using editor.field().update() on a checkbox
Editor v1.2.3: Bug caused by typo when using editor.field().update() on a checkbox

Admittedly, I don't think update is documented for checkbox, but the code is there :-)
Using "update" to change the acceptable values causes the existing selection to be lost.
See dataTables.editor.js line 4124
[code]fieldTypes.checkbox.get( conf, currVal );[/code]
Should read
[code]fieldTypes.checkbox.set( conf, currVal );[/code]
Fixed in my plug-in field and works perfectly.
My next task....a plug-in field for multiple select!
Cheers,
M.
Using "update" to change the acceptable values causes the existing selection to be lost.
See dataTables.editor.js line 4124
[code]fieldTypes.checkbox.get( conf, currVal );[/code]
Should read
[code]fieldTypes.checkbox.set( conf, currVal );[/code]
Fixed in my plug-in field and works perfectly.
My next task....a plug-in field for multiple select!
Cheers,
M.
This discussion has been closed.
Replies
Allan
Cheers,
M.