with a 1 works.
For any one else looking at this post for help with checkbox editing in list view (and just in case Steve has a comment) here is my working editable_SELECT.js:
//require <jquery.packed.js>
//require <xataface/IO.js>
(function(){
// Get a short handle to the jQuery object
var $ = jQuery;
//registerXatafaceDecorator() is like $(document).ready() except that it may also be called
// when a node is loaded via ajax.
registerXatafaceDecorator(function(node){
$('input.select-checkbox[data-record-id]', node).change(function(){
var recordId = $(this).attr('data-record-id');
if($(this).attr('checked') === 'checked') {$checked = 1;} else {$checked = '';};
xataface.IO.update(recordId, {SELECT : $checked}, function(res){
if ( res && res.code == 200 ){
showAlert('saved');
} else if ( res && res.message ){
showAlert('Notsaved');
alert('Failed to update SELECT: '+res.message);
} else {
showAlert('Notsaved'); //showAlert is a function to display a 1 second duration 'saved' pop-up instead of the alert message
alert('Failed to update SELECT. Check server log for details');
}
})
});
});
And my working delegate class 'trees.php':