From 6a0eab0cf8069703edb4aabdea75fd21de8d40dc Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 24 Sep 2014 17:06:19 +0200 Subject: [PATCH] Checkpoint commit --- Site5/Pages/v5/Ledgers/AccountPlan.aspx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Site5/Pages/v5/Ledgers/AccountPlan.aspx b/Site5/Pages/v5/Ledgers/AccountPlan.aspx index 1581177c..912344af 100644 --- a/Site5/Pages/v5/Ledgers/AccountPlan.aspx +++ b/Site5/Pages/v5/Ledgers/AccountPlan.aspx @@ -90,9 +90,9 @@ $('#divModalBox').animate({ "height": ($('#DivModalFields').outerHeight() + $('#HeaderModal').outerHeight()) + 40 + "px" }, 50); }, 50); // set timeout to after checkboxes initialized, if this is the first show of modal - if (!checkboxesInitialized) { - // This is a weird construct, but comes from the switchbuttons needing to be visible when initialized - // TODO: Only do this if we're in a P&L account + if (!checkboxesInitialized && (accountType == 'I' || accountType == 'C')) { + // This is a weird construct, but comes from the switchbuttons needing to be visible when initialized. + // Hence, it can't be done in document.Ready but need to be done on first show. setTimeout(function() { $('.EditCheck') .switchbutton({