Skip to content
Snippets Groups Projects
Commit f9dcd1b1 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

refresh work

parent 0001cfbb
No related branches found
No related tags found
1 merge request!8410Body mod to js
App.UI.bodyModification = function(slave, cheat = false) {
const el = new DocumentFragment();
const container = document.createElement("span");
container.id = "body-modification";
const {
He, His,
he, his, him, himself
......@@ -10,15 +11,19 @@ App.UI.bodyModification = function(slave, cheat = false) {
let scarApplied;
let brandApplied;
if (V.seeImages > 0) {
App.Events.drawEventArt(el, slave);
}
el.append(intro());
el.append(reaction());
el.append(piercings());
container.append(createPage());
return container;
return el;
function createPage() {
const el = new DocumentFragment();
if (V.seeImages > 0) {
App.Events.drawEventArt(el, slave);
}
el.append(intro());
el.append(reaction());
el.append(piercings());
return el;
}
function intro() {
const el = new DocumentFragment();
......@@ -222,7 +227,7 @@ App.UI.bodyModification = function(slave, cheat = false) {
}
}
r.push(App.UI.DOM.generateLinksStrip(linkArray));
App.Events.addNode(el, r, "div", "indent");
App.Events.addNode(el, r, "div");
r = [];
// Determine parts that cannot be pierced
......@@ -319,6 +324,6 @@ App.UI.bodyModification = function(slave, cheat = false) {
}
function refresh() {
App.UI.reload();
jQuery("#body-modification").empty().append(createPage());
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment