In strict mode functions (toggleStage2) can only be declared immediately within another function. This prevented the failsafe tab from getting loaded properly.

10.3.x-maintenance
NightHawk32 2016-08-10 06:11:17 -04:00
parent 3679111878
commit 1a800122be
1 changed files with 9 additions and 9 deletions

View File

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