Skip to content

Commit 98e9eab

Browse files
author
cboos
committed
Fixed the logic for hiding again the already collapsed folders which are temporarily shown when one of their ancestor gets re-expanded. Not quite sure how I got to the previous flawed code. Closes #5846.
git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@5907 af82e41b-90c4-0310-8c96-b1721e28e2e2
1 parent 6130fa2 commit 98e9eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trac/htdocs/js/expand_dir.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function toggleDir(expander, qargs) {
5555
// Note that the above will show all the already fetched subtree,
5656
// so we have to fold again the folders which were already collapsed.
5757
tr.siblings("tr.collapsed").each(function() {
58-
expander.siblings("tr."+expander.get(0).id).hide();
58+
tr.siblings("tr."+this.id).not(this).hide();
5959
});
6060
} else { // then *fetch*
6161
var td = expander.parents("td");

0 commit comments

Comments
 (0)