From d03434cc434918c38efb7021a6f3d6ee6c7c1202 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 13 May 2015 19:14:00 -0400 Subject: [PATCH] more bools --- src/js/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index 1135367..fc5472b 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -315,7 +315,7 @@ function toggleSpecificCollapseState(uelem) { var section = uelem.ancestors('.matSection.collapsible').toggleClass('collapsed'); var domain = section.prop('domain'); var collapsed = section.hasClass('collapsed'); - var mainCollapseState = getUISetting('popupCollapseDomains'); + var mainCollapseState = getUISetting('popupCollapseDomains') === true; var specificCollapseStates = getUISetting('popupCollapseSpecificDomains') || {}; if ( collapsed !== mainCollapseState ) { specificCollapseStates[domain] = collapsed; @@ -512,7 +512,7 @@ var createMatrixRow = function() { function renderMatrixHeaderRow() { var matHead = uDom('#matHead.collapsible'); - matHead.toggleClass('collapsed', getUISetting('popupCollapseDomains')); + matHead.toggleClass('collapsed', getUISetting('popupCollapseDomains') === true); var cells = matHead.descendants('.matCell'); cells.at(0) .prop('reqType', '*')