pull/2/head
gorhill 7 years ago
parent 5b8bcb1a9a
commit 040812d813
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

@ -386,7 +386,7 @@ function toggleCollapseState(elem) {
function toggleMainCollapseState(uelem) { function toggleMainCollapseState(uelem) {
var matHead = uelem.ancestors('#matHead.collapsible').toggleClass('collapsed'); var matHead = uelem.ancestors('#matHead.collapsible').toggleClass('collapsed');
var collapsed = matHead.hasClass('collapsed'); var collapsed = matrixSnapshot.collapseAllDomains = matHead.hasClass('collapsed');
uDom('#matList .matSection.collapsible').toggleClass('collapsed', collapsed); uDom('#matList .matSection.collapsible').toggleClass('collapsed', collapsed);
setUserSetting('popupCollapseAllDomains', collapsed); setUserSetting('popupCollapseAllDomains', collapsed);
@ -1514,11 +1514,13 @@ uDom('.extensionURL').on('click', gotoExtensionURL);
uDom('body').on('click', '.dropdown-menu-button', dropDownMenuShow); uDom('body').on('click', '.dropdown-menu-button', dropDownMenuShow);
uDom('body').on('click', '.dropdown-menu-capture', dropDownMenuHide); uDom('body').on('click', '.dropdown-menu-capture', dropDownMenuHide);
uDom('#matList').on('click', '.g4Meta', function() { uDom('#matList').on('click', '.g4Meta', function(ev) {
var collapsed = uDom(this) matrixSnapshot.collapseBlacklistedDomains =
.toggleClass('g4Collapsed') ev.target.classList.toggle('g4Collapsed');
.hasClass('g4Collapsed'); setUserSetting(
setUserSetting('popupCollapseBlacklistedDomains', collapsed); 'popupCollapseBlacklistedDomains',
matrixSnapshot.collapseBlacklistedDomains
);
}); });
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save