mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 05:25:56 +00:00
feedTree: pass new copies of parent arrays while looking for category nodes to auto-expand to prevent siblings uncollapsing due to objects being passed by reference
This commit is contained in:
@@ -259,12 +259,12 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
|||||||
if (String(root.items[i].id) == test_id) {
|
if (String(root.items[i].id) == test_id) {
|
||||||
this.expandParentNodes(feed, is_cat, parents);
|
this.expandParentNodes(feed, is_cat, parents);
|
||||||
} else {
|
} else {
|
||||||
this.findNodeParentsAndExpandThem(feed, is_cat, root.items[i], parents);
|
this.findNodeParentsAndExpandThem(feed, is_cat, root.items[i], parents.slice(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (String(root.id) == test_id) {
|
if (String(root.id) == test_id) {
|
||||||
this.expandParentNodes(feed, is_cat, parents);
|
this.expandParentNodes(feed, is_cat, parents.slice(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user