Index: trunk/extensions/TreeAndMenu/star.js |
— | — | @@ -7,8 +7,8 @@ |
8 | 8 | easing: 'swing', |
9 | 9 | out_spin: 2, |
10 | 10 | in_spin: 2, |
11 | | - width: '400px', |
12 | | - height: '400px' |
| 11 | + width: '500px', |
| 12 | + height: '500px' |
13 | 13 | } |
14 | 14 | |
15 | 15 | /** |
— | — | @@ -113,20 +113,22 @@ |
114 | 114 | |
115 | 115 | // If closing, change icon to "plus", flip t, and hide items at end |
116 | 116 | if( data.open ) { |
117 | | - $('img', e).attr('src', window.tamBaseUrl + window.star_config.img_node); |
| 117 | + if( fx.pos == 0 ) $('img', e).attr('src', window.tamBaseUrl + window.star_config.img_node); |
118 | 118 | if( t > 0.9 ) display = 'none'; |
119 | 119 | o = window.star_config.out_spin + t * window.star_config.in_spin; |
120 | 120 | t = 1 - t; |
121 | 121 | } |
122 | 122 | |
123 | 123 | // If opening, change icon to "minus" and check siblings to see if one needs to be closed |
124 | | - else if( d > 1 && fx.pos == 0 ) { |
| 124 | + else if( fx.pos == 0 ) { |
125 | 125 | $('img', e).attr('src', window.tamBaseUrl + window.star_config.img_open); |
126 | | - var pdata = getData(data.parent); |
127 | | - for( var i in pdata.children ) { |
128 | | - var sibling = pdata.children[i]; |
129 | | - var sdata = getData(sibling); |
130 | | - if( sdata.open ) animateNode(sibling); |
| 126 | + if( d > 1 ) { |
| 127 | + var pdata = getData(data.parent); |
| 128 | + for( var i in pdata.children ) { |
| 129 | + var sibling = pdata.children[i]; |
| 130 | + var sdata = getData(sibling); |
| 131 | + if( sdata.open ) animateNode(sibling); |
| 132 | + } |
131 | 133 | } |
132 | 134 | } |
133 | 135 | |