Skip to content

Commit b5495dd

Browse files
author
p01
committed
Fixed DFL-3278
1 parent 26d5ac8 commit b5495dd

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/resource-manager/resource_service.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,21 +195,25 @@ cls.ResourceManagerService = function(view, network_logger)
195195

196196
var button = target.querySelector('.button-expand-collapse');
197197
var pivot = target.get_ancestor('[data-expand-collapse-id]');
198+
var pivots = [pivot];
198199
if (button && pivot)
199200
{
200201
var hash = this. _collapsedHash;
201202
var pivotID = pivot.getAttribute('data-expand-collapse-id');
203+
var collapsed = hash[pivotID] === true?false:true;
202204

203-
if (hash[pivotID] === true)
204-
{
205-
hash[pivotID] = false;
206-
pivot.classList.remove('close');
207-
}
208-
else
205+
if (event.shiftKey)
206+
[].push.apply(pivots, pivot.querySelectorAll('[data-expand-collapse-id]'));
207+
208+
pivots.forEach(function(p)
209209
{
210-
hash[pivotID] = true;
211-
pivot.classList.add('close');
212-
}
210+
var pivotID = p.getAttribute('data-expand-collapse-id');
211+
hash[pivotID] = collapsed;
212+
if (collapsed)
213+
p.classList.add('close');
214+
else
215+
p.classList.remove('close');
216+
});
213217
}
214218
}.bind(this);
215219

0 commit comments

Comments
 (0)