Fix: arbre n'ouvrait que la branche active au lieu de toutes
This commit is contained in:
+2
-1
@@ -241,7 +241,8 @@ function RT(){
|
||||
};
|
||||
dv.appendChild(rw)
|
||||
}
|
||||
if(br){var kd=document.createElement('div');kd.className='chd o';
|
||||
function onPath(t) { if(!t||t===n)return true; var p=t._p; while(p){if(p===n)return true;p=p._p}return false; }
|
||||
if(br){var kd=document.createElement('div');kd.className='chd'+(onPath(N)?' o':'');
|
||||
for(var i=0;i<n.children.length;i++){n.children[i]._p=n;RN(kd,n.children[i],d+1)}
|
||||
dv.appendChild(kd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user