wesnolte / jOrgChart

A jQuery plugin to draw tree-like structures such as OrgCharts.
992 stars 674 forks source link

Bugfixes related to setting of cursor on parent nodes #4

Closed neilb closed 12 years ago

neilb commented 12 years ago

Hi Wes,

Three fixes related to setting the cursor on nodes:

[1]

When opening/closing a parent node, it was calling addClass(), but it also needs to removeClass() otherwise you ended up with both contracted and expanded classes on a node.

[2] the click handler now doesn't get installed on nodes that don't have any children.

[3] set the contracted class on nodes which have their initial state set with

wesnolte commented 12 years ago

Thanks again Neil.