pjekel / cbtree

The Dijit Tree with Multi State Checkboxes, project code 'cbtree' , is a highly configurable dojo/dijit tree with support for multi-state checkboxes or third party widgets capable of presenting a so-called 'checked' state.
Other
75 stars 34 forks source link

Parent-Child Relationship #35

Closed abesk closed 11 years ago

abesk commented 11 years ago

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.

pjekel commented 11 years ago

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) );
abesk commented 11 years ago

thx