diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js index f943cc87b111f7768c5ec6628206b847bb58c34e..2b1d8ed8444041036f5c90eea68180675882984d 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 106e31f45bc5ad25c3536d464f9ff32452167ca1..789586dc972e38d681be381e1bb5e8e171924bec 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,