Skip to content

Commit

Permalink
fixes checkbox state restore (closes #216)
Browse files Browse the repository at this point in the history
  • Loading branch information
vakata committed Aug 23, 2012
1 parent 816e0bb commit b2c3954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jstree.checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ Adds checkboxes to the tree.
},
get_state : function () {
var state = this.__call_old();
state.checked = [];
this.get_container().find('.jstree-checked').closest('li').each(function () { if(this.id) { state.checked.push(this.id); } });
state.checkbox = [];
this.get_container().find('.jstree-checked').closest('li').each(function () { if(this.id) { state.checkbox.push(this.id); } });
return state;
},
set_state : function (state, callback) {
Expand Down

0 comments on commit b2c3954

Please sign in to comment.