From 9611b0bd5ed10659269b0430a08c7e7a2c36e14b Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 30 Aug 2020 20:24:18 -0400 Subject: [PATCH] school fixes --- src/markets/marketUI.js | 7 +++---- src/markets/theMarket/buySlaves.js | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js index f943cc87b11..2b1d8ed8444 100644 --- a/src/markets/marketUI.js +++ b/src/markets/marketUI.js @@ -99,9 +99,8 @@ App.UI.buyingFromSchoolControls = function(school, slave, cost, sTitleSingular = `Decline to purchase ${him} and check out another ${sTitleSingular}`, () => { V.slavesSeen += 1; + jQuery("#slave-markets").empty().append(App.Markets[school]); }, - [], - passage() // TODO can I refresh just the school? ) ); if (V.cash >= cost) { @@ -117,9 +116,9 @@ App.UI.buyingFromSchoolControls = function(school, slave, cost, sTitleSingular = V.newSlaves.push(slave); V.introType = "multi"; V.slavesSeen += 1; + jQuery("#slave-markets").empty().append(App.Markets[school]); }, [], - passage() // TODO can I refresh just the school? ) ); if (V.newSlaves.length === 0) { @@ -155,7 +154,7 @@ App.UI.buyingFromSchoolControls = function(school, slave, cost, sTitleSingular = ); } } else { - // You lack the necessary funds to buy this V.args[1].// + App.UI.DOM.appendNewElement("div", el, `You lack the necessary funds to buy this ${sTitleSingular}.`, "note"); } if (V.newSlaves.length > 0) { App.UI.DOM.appendNewElement( diff --git a/src/markets/theMarket/buySlaves.js b/src/markets/theMarket/buySlaves.js index 106e31f45bc..789586dc972 100644 --- a/src/markets/theMarket/buySlaves.js +++ b/src/markets/theMarket/buySlaves.js @@ -137,7 +137,6 @@ App.UI.buySlaves = function() { const linkArray = []; - store.passage = store.passage || "Slave Markets"; linkArray.push( App.UI.DOM.link( store.title, -- GitLab