In strict mode functions (toggleStage2) can only be declared immediately within another function. This prevented the failsafe tab from getting loaded properly.
parent
3679111878
commit
1a800122be
|
@ -63,6 +63,15 @@ TABS.failsafe.initialize = function (callback, scrollPosition) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function process_html() {
|
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
|
// Conditionally hide the old or the new control pane's
|
||||||
if(apiVersionGte1_15_0) {
|
if(apiVersionGte1_15_0) {
|
||||||
var oldPane = $('div.oldpane');
|
var oldPane = $('div.oldpane');
|
||||||
|
@ -201,15 +210,6 @@ TABS.failsafe.initialize = function (callback, scrollPosition) {
|
||||||
|
|
||||||
BF_CONFIG.features.generateElements($('.tab-failsafe .featuresNew'));
|
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"]');
|
var failsafeFeature = $('input[name="FAILSAFE"]');
|
||||||
failsafeFeature.change(function () {
|
failsafeFeature.change(function () {
|
||||||
toggleStage2($(this).is(':checked'));
|
toggleStage2($(this).is(':checked'));
|
||||||
|
|
Loading…
Reference in New Issue