Browse Source

more bools

pull/2/head
gorhill 10 years ago
parent
commit
d03434cc43
  1. 4
      src/js/popup.js

4
src/js/popup.js

@ -315,7 +315,7 @@ function toggleSpecificCollapseState(uelem) {
var section = uelem.ancestors('.matSection.collapsible').toggleClass('collapsed'); var section = uelem.ancestors('.matSection.collapsible').toggleClass('collapsed');
var domain = section.prop('domain'); var domain = section.prop('domain');
var collapsed = section.hasClass('collapsed'); var collapsed = section.hasClass('collapsed');
var mainCollapseState = getUISetting('popupCollapseDomains');
var mainCollapseState = getUISetting('popupCollapseDomains') === true;
var specificCollapseStates = getUISetting('popupCollapseSpecificDomains') || {}; var specificCollapseStates = getUISetting('popupCollapseSpecificDomains') || {};
if ( collapsed !== mainCollapseState ) { if ( collapsed !== mainCollapseState ) {
specificCollapseStates[domain] = collapsed; specificCollapseStates[domain] = collapsed;
@ -512,7 +512,7 @@ var createMatrixRow = function() {
function renderMatrixHeaderRow() { function renderMatrixHeaderRow() {
var matHead = uDom('#matHead.collapsible'); var matHead = uDom('#matHead.collapsible');
matHead.toggleClass('collapsed', getUISetting('popupCollapseDomains'));
matHead.toggleClass('collapsed', getUISetting('popupCollapseDomains') === true);
var cells = matHead.descendants('.matCell'); var cells = matHead.descendants('.matCell');
cells.at(0) cells.at(0)
.prop('reqType', '*') .prop('reqType', '*')

Loading…
Cancel
Save