pjekel/cbtree

Parent-Child Relationship

Closed this issue · 2 comments

Now, when I click on checkbox with "mixed" state, its and children value change to "true" state. I would like to set oposite. When I click on checkbox with "mixed" state, values will change to "false" state.

If you want to change the checkbox toggle order you will have to change the Checkbox toggle() method. Change the following line in CheckBox.toggle():

return this._setCheckedAttr( (curState == 'mixed' ? true : !curState ) );

to:

return this._setCheckedAttr( (curState == 'mixed' ? !curState : true) );

thx