From 9374c693e3a1c068cbe8aaade66e871f59f9712d Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 28 Oct 2020 21:07:57 -0400
Subject: [PATCH] fixes

---
 src/uncategorized/brothelReport.js | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/uncategorized/brothelReport.js b/src/uncategorized/brothelReport.js
index bcfd3455524..39dd10c08a5 100644
--- a/src/uncategorized/brothelReport.js
+++ b/src/uncategorized/brothelReport.js
@@ -251,8 +251,11 @@ globalThis.brothelReport = function() {
 				App.UI.DOM.appendNewElement("div", madamEntry, App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "tinyImg"]);
 			}
 			madamEntry.append(App.EndWeek.favoriteIcon(slave), " ");
-			$(madamEntry).append(`<span class='slave-name'>${SlaveFullName(slave)}</span> is serving as the Madam.`);
-			$(madamEntry).append(App.SlaveAssignment.standardSlaveReport(slave, false));
+			r  = [];
+			r.push(App.UI.DOM.makeElement("span", SlaveFullName(slave), "slave-name"));
+			r.push(`is serving as the Madam.`);
+			r.push(App.SlaveAssignment.standardSlaveReport(slave, false));
+			App.Events.addNode(madamEntry, r);
 		} else {
 			App.SlaveAssignment.standardSlaveReport(slave, true);
 		}
@@ -322,15 +325,17 @@ globalThis.brothelReport = function() {
 					App.UI.DOM.appendNewElement("div", slaveEntry, App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "tinyImg"]);
 				}
 				slaveEntry.append(App.EndWeek.favoriteIcon(slave), " ");
-				$(slaveEntry).append(`<span class='slave-name'>${SlaveFullName(slave)}</span> `);
+				r = [];
+				r.push(App.UI.DOM.makeElement("span", SlaveFullName(slave), "slave-name"));
 				if (slave.choosesOwnAssignment === 2) {
-					$(slaveEntry).append(App.SlaveAssignment.choosesOwnJob(slave));
+					r.push(App.SlaveAssignment.choosesOwnJob(slave));
 				} else {
-					$(slaveEntry).append(`is working out of ${V.brothelName}.`);
+					r.push(`is working out of ${V.brothelName}.`);
 				}
-				slaveEntry.append(` ${He} `);
-				$(slaveEntry).append(App.SlaveAssignment.whore(slave));
-				$(slaveEntry).append(App.SlaveAssignment.standardSlaveReport(slave, false));
+				r.push(He);
+				r.push(App.SlaveAssignment.whore(slave));
+				r.push(App.SlaveAssignment.standardSlaveReport(slave, false));
+				App.Events.addNode(slaveEntry, r);
 			} else {
 				// discard return values silently
 				App.SlaveAssignment.choosesOwnJob(slave);
-- 
GitLab