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'));