diff --git a/src/features/custom_change_summary_options/custom_change_summary_options.js b/src/features/custom_change_summary_options/custom_change_summary_options.js index 26ad3ac8..97241b91 100644 --- a/src/features/custom_change_summary_options/custom_change_summary_options.js +++ b/src/features/custom_change_summary_options/custom_change_summary_options.js @@ -20,8 +20,9 @@ shouldInitializeFeature("customChangeSummaryOptions").then(async (result) => { }); const validationContainer = $("#validationContainer"); +const sco = $(".six.columns.omega").eq(0); + async function addMovingSaveBox() { - const sco = $(".six.columns.omega").eq(0); if ($("#saveStuff").length == 0 && $("#removeSpouse").length == 0) { const saveStuff = $("
"); saveStuff.append($("#wpSummary").parent()); @@ -129,6 +130,7 @@ async function addMovingSaveBox() { }); window.timer = null; + /* const options = await getFeatureOptions("customChangeSummaryOptions"); if (options.movingSaveBox) { $("#saveStuff").prependTo(sco); @@ -149,6 +151,42 @@ async function addMovingSaveBox() { } }); } + */ + + const options = await getFeatureOptions("customChangeSummaryOptions"); + if (options.movingSaveBox) { + const saveStuff = $("#saveStuff"); + const placeholder = $("