Skip to content

Commit 1062413

Browse files
author
p01
committed
DFL-3647, Expand the documents and groups that contain a resource matching the searchTerm of the token filter
1 parent ae70106 commit 1062413

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resource-manager/resource_templates.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ templates.resource_tree =
2222
_expander_extras:function(context, pivotID, depth)
2323
{
2424
var hash = context.collapsed;
25-
if (!hash.hasOwnProperty(pivotID))
25+
if (context.searchTerm != '')
26+
hash[pivotID] = false;
27+
else if (!hash.hasOwnProperty(pivotID))
2628
hash[pivotID] = depth>1;
2729

2830
var collapsed = hash[pivotID];

0 commit comments

Comments
 (0)