From 1a800122be69d766f9a6a94d3a237973f3064ddc Mon Sep 17 00:00:00 2001 From: NightHawk32 Date: Wed, 10 Aug 2016 06:11:17 -0400 Subject: [PATCH] In strict mode functions (toggleStage2) can only be declared immediately within another function. This prevented the failsafe tab from getting loaded properly. --- tabs/failsafe.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tabs/failsafe.js b/tabs/failsafe.js index ad392aca..9c00299a 100644 --- a/tabs/failsafe.js +++ b/tabs/failsafe.js @@ -63,6 +63,15 @@ TABS.failsafe.initialize = function (callback, scrollPosition) { } function process_html() { + // fill stage 2 fields + function toggleStage2(doShow) { + if (doShow) { + $('div.stage2').show(); + } else { + $('div.stage2').hide(); + } + } + // Conditionally hide the old or the new control pane's if(apiVersionGte1_15_0) { var oldPane = $('div.oldpane'); @@ -201,15 +210,6 @@ TABS.failsafe.initialize = function (callback, scrollPosition) { BF_CONFIG.features.generateElements($('.tab-failsafe .featuresNew')); - // fill stage 2 fields - function toggleStage2(doShow) { - if (doShow) { - $('div.stage2').show(); - } else { - $('div.stage2').hide(); - } - } - var failsafeFeature = $('input[name="FAILSAFE"]'); failsafeFeature.change(function () { toggleStage2($(this).is(':checked'));