First: set in jsTree's-config the checkboxes to use only two states
(use newest commit of jsTree!):
checkbox : { "two_state" : true }
Second: setup the 'change_state'-Event and check if a node is already
checked. If so: cancel the second check:
.bind("change_state.jstree", function(e, data){
if(data.inst.get_checked().length>1){
data.inst.uncheck_node(data.rslt[0]);
}
})
In this case i will UNDO the check, because i haven't found a solution
to really CANCEL the check/event -> but the result is the same... ;-)
Markus.