1.修改选中父级时不自动选中子级,选中子级时直接选中父级并存储父级id.on(this.settings.checkbox.tie_selection ? 'select_node.jstree' : 'check_node.jstree', $.proxy(function (e, data) {
var obj = data.node,
m = this._model.data,
par = this.get_node(obj.parent),
dom = this.get_node(obj, true),
i, j, c, tmp, s = this.settings.checkbox.cascade, t = this.settings.checkbox.tie_selection;
// apply down
// if(s.indexOf('down') !== -1) {
// this._data[ t ? 'core' : 'checkbox' ].selected = $.vakata.array_unique(this._data[ t ? 'core' : 'checkbox' ].selected.concat(obj.children_d));
// for(i = 0, j = obj.children_d.length; i
// tmp = m[obj.children_d[i]];
// tmp.state[ t ? 'selected' : 'checked' ] = true;
// if(tmp && tmp.original && tmp.original.state && tmp.original.state.undetermined) {
// tmp.original.state.undetermined = false;
// }
// }
// }
// apply up
if(s.indexOf('up') !== -1) {
while(par && par.id !== '#') {
// c = 0;
// for(i = 0, j = par.children.length; i
// c += m[par.children[i]].state[ t ? 'selected' : 'checked' ];
// }
// if(c === j) {
par.state[ t ? 'selected' : 'checked' ] = true;
if($.inArray