|
|
@ -373,7 +373,7 @@ function getCollapseState(domain) {
|
|
|
|
if ( typeof states === 'object' && states[domain] !== undefined ) {
|
|
|
|
if ( typeof states === 'object' && states[domain] !== undefined ) {
|
|
|
|
return states[domain];
|
|
|
|
return states[domain];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return getUISetting('popupCollapseDomains') === true;
|
|
|
|
return matrixSnapshot.collapseAllDomains === true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleCollapseState(elem) {
|
|
|
|
function toggleCollapseState(elem) {
|
|
|
@ -388,7 +388,7 @@ 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 = matHead.hasClass('collapsed');
|
|
|
|
uDom('#matList .matSection.collapsible').toggleClass('collapsed', collapsed);
|
|
|
|
uDom('#matList .matSection.collapsible').toggleClass('collapsed', collapsed);
|
|
|
|
setUISetting('popupCollapseDomains', collapsed);
|
|
|
|
setUserSetting('popupCollapseAllDomains', collapsed);
|
|
|
|
|
|
|
|
|
|
|
|
var specificCollapseStates = getUISetting('popupCollapseSpecificDomains') || {};
|
|
|
|
var specificCollapseStates = getUISetting('popupCollapseSpecificDomains') || {};
|
|
|
|
var domains = Object.keys(specificCollapseStates);
|
|
|
|
var domains = Object.keys(specificCollapseStates);
|
|
|
@ -409,7 +409,7 @@ function toggleSpecificCollapseState(uelem) {
|
|
|
|
var section = uelem.ancestors('.matSection.collapsible').toggleClass('collapsed'),
|
|
|
|
var section = uelem.ancestors('.matSection.collapsible').toggleClass('collapsed'),
|
|
|
|
domain = expandosFromNode(section).domain,
|
|
|
|
domain = expandosFromNode(section).domain,
|
|
|
|
collapsed = section.hasClass('collapsed'),
|
|
|
|
collapsed = section.hasClass('collapsed'),
|
|
|
|
mainCollapseState = getUISetting('popupCollapseDomains') === true,
|
|
|
|
mainCollapseState = matrixSnapshot.collapseAllDomains === true,
|
|
|
|
specificCollapseStates = getUISetting('popupCollapseSpecificDomains') || {};
|
|
|
|
specificCollapseStates = getUISetting('popupCollapseSpecificDomains') || {};
|
|
|
|
if ( collapsed !== mainCollapseState ) {
|
|
|
|
if ( collapsed !== mainCollapseState ) {
|
|
|
|
specificCollapseStates[domain] = collapsed;
|
|
|
|
specificCollapseStates[domain] = collapsed;
|
|
|
@ -605,7 +605,7 @@ var createMatrixRow = function() {
|
|
|
|
|
|
|
|
|
|
|
|
function renderMatrixHeaderRow() {
|
|
|
|
function renderMatrixHeaderRow() {
|
|
|
|
var matHead = uDom('#matHead.collapsible');
|
|
|
|
var matHead = uDom('#matHead.collapsible');
|
|
|
|
matHead.toggleClass('collapsed', getUISetting('popupCollapseDomains') === true);
|
|
|
|
matHead.toggleClass('collapsed', matrixSnapshot.collapseAllDomains === true);
|
|
|
|
var cells = matHead.descendants('.matCell'), cell, expandos;
|
|
|
|
var cells = matHead.descendants('.matCell'), cell, expandos;
|
|
|
|
cell = cells.nodeAt(0);
|
|
|
|
cell = cells.nodeAt(0);
|
|
|
|
expandos = expandosFromNode(cell);
|
|
|
|
expandos = expandosFromNode(cell);
|
|
|
@ -1033,7 +1033,7 @@ function makeMatrixGroup4(group) {
|
|
|
|
var groupDiv = createMatrixGroup().addClass('g4');
|
|
|
|
var groupDiv = createMatrixGroup().addClass('g4');
|
|
|
|
createMatrixSection()
|
|
|
|
createMatrixSection()
|
|
|
|
.addClass('g4Meta')
|
|
|
|
.addClass('g4Meta')
|
|
|
|
.toggleClass('g4Collapsed', !!getUISetting('popupHideBlacklisted'))
|
|
|
|
.toggleClass('g4Collapsed', !!matrixSnapshot.collapseBlacklistedDomains)
|
|
|
|
.appendTo(groupDiv);
|
|
|
|
.appendTo(groupDiv);
|
|
|
|
makeMatrixMetaRow(computeMatrixGroupMetaStats(group), 'g4')
|
|
|
|
makeMatrixMetaRow(computeMatrixGroupMetaStats(group), 'g4')
|
|
|
|
.appendTo(groupDiv);
|
|
|
|
.appendTo(groupDiv);
|
|
|
@ -1518,7 +1518,7 @@ uDom('#matList').on('click', '.g4Meta', function() {
|
|
|
|
var collapsed = uDom(this)
|
|
|
|
var collapsed = uDom(this)
|
|
|
|
.toggleClass('g4Collapsed')
|
|
|
|
.toggleClass('g4Collapsed')
|
|
|
|
.hasClass('g4Collapsed');
|
|
|
|
.hasClass('g4Collapsed');
|
|
|
|
setUISetting('popupHideBlacklisted', collapsed);
|
|
|
|
setUserSetting('popupCollapseBlacklistedDomains', collapsed);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|