diff --git a/src/markets/specificMarkets/customSlaveMarket.js b/src/markets/specificMarkets/customSlaveMarket.js index b6f37404f71f22dd96284bd271c46c6f955f7a6f..4a86349e4fd4480fcda82d00829a30c3b86b7563 100644 --- a/src/markets/specificMarkets/customSlaveMarket.js +++ b/src/markets/specificMarkets/customSlaveMarket.js @@ -301,15 +301,6 @@ App.Markets["Custom Slave"] = function() { createDescription(el, description, slaveProperty); // Choices - el.append( - App.UI.DOM.makeTextBox( - slave.race, - (v) => { - slave.race = v; - jQuery("#race-text").empty().append(description()); - } - ) - ); const select = document.createElement("select"); for (const [value, text] of choices) { @@ -325,11 +316,13 @@ App.Markets["Custom Slave"] = function() { el.append(select); function description() { - if (slave.race) { - return `${capFirstChar(slave.race)}. `; - } else { - return "Ethnicity is unimportant. "; - } + return App.UI.DOM.makeTextBox( + slave.race, + (v) => { + slave.race = v; + jQuery("#race-text").empty().append(description()); + } + ); } return el; @@ -346,16 +339,6 @@ App.Markets["Custom Slave"] = function() { createDescription(el, description, slaveProperty); // Choices - el.append( - App.UI.DOM.makeTextBox( - slave.skin, - (v) => { - slave.skin = v; - jQuery("#skin-text").empty().append(description()); - } - ) - ); - const select = document.createElement("select"); for (const [value, text] of choices) { const option = document.createElement("option"); @@ -370,11 +353,13 @@ App.Markets["Custom Slave"] = function() { el.append(select); function description() { - if (slave.race) { - return `${capFirstChar(slave.skin)}. `; - } else { - return "Ethnicity is unimportant. "; - } + return App.UI.DOM.makeTextBox( + slave.skin, + (v) => { + slave.skin = v; + jQuery("#skin-text").empty().append(description()); + } + ); } return el;