Use the latest commit (as it has some bugs fixed and you can lose the
UI plugin too) and then use the types plugin and:
1) Either give your disabled nodes a type and set it to:
"disabled" : {
"check_node" : false,
"uncheck_node" : false
}
// Your disabled nodes should have their "rel" attributes set to
"disabled"
// You can change that name and the attribute if you will - read the
types plugin docs
2) Or use the default type:
"default" : {
"check_node" : function () {
if(node_should_be_disabled) return false;
return true;
},
"uncheck_node" : function () {
if(node_should_be_disabled) return false;
return true;
}
}
I hope this helps :)
Cheers,
Ivan