diff --git a/src/facilities/fsDecoration.js b/src/facilities/fsDecoration.js index 45218f17c5635bddc1a6e8bbb975b6a4c62f95a6..a51344464e5a47709481f9714b868504f4af5563 100644 --- a/src/facilities/fsDecoration.js +++ b/src/facilities/fsDecoration.js @@ -74,6 +74,15 @@ App.UI.facilityRedecoration = function() { function createPulldown(option, variable) { const select = document.createElement("select"); select.classList.add("rajs-list"); + + // Standard decorations + const choice = App.UI.DOM.appendNewElement("option", select, "Standard"); + choice.value = "standard"; + if (V[variable] === "standard") { + choice.selected = true; + } + + // FS decorations for (const decorationName of decorationNames) { const choice = App.UI.DOM.makeElement("option", decorationName); if (V[variable] === decorationName) { @@ -81,11 +90,6 @@ App.UI.facilityRedecoration = function() { } select.append(choice); } - const choice = App.UI.DOM.appendNewElement("option", select, "Standard"); - choice.value = "standard"; - if (V[variable] === "standard") { - choice.selected = true; - } select.onchange = () => { const O = select.options[select.selectedIndex]; @@ -102,12 +106,17 @@ App.UI.facilityRedecoration = function() { function modifyAll(option) { const select = document.createElement("select"); select.classList.add("rajs-list"); + + // Standard decorations + const standard = App.UI.DOM.appendNewElement("option", select, "Standard"); + standard.value = "standard"; + + // FS decorations for (const decorationName of decorationNames) { App.UI.DOM.appendNewElement("option", select, decorationName); } - const standard = App.UI.DOM.appendNewElement("option", select, "Standard"); - standard.value = "standard"; + // Round Robin App.UI.DOM.appendNewElement("option", select, "Distribute Evenly"); select.onchange = () => {