Skip to content
Snippets Groups Projects
Commit e80598cd authored by Arkerthan's avatar Arkerthan
Browse files

move summary check to main

parent 7bacf4fb
No related branches found
No related tags found
1 merge request!6266Convert penthouse slave listing to DOM
......@@ -89,7 +89,7 @@ App.MainView.useGuard = function() {
const outerDiv = document.createElement("div");
if (guard === undefined || guard.assignment !== "guard you" || V.useSlaveSummaryOverviewTab === 1) {
if (guard === undefined || guard.assignment !== "guard you") {
return outerDiv;
}
......
......@@ -143,14 +143,16 @@ __''MAIN MENU''__    //[[Summary Options]]//
<</for>>
<</if>>
<span id="BG"></span>
<<script>>
$(document).one(':passageend', () => {
$('#BG').append(
App.MainView.useGuard(),
);
});
<</script>>
<<if $useSlaveSummaryOverviewTab === 0>>
<span id="BG"></span>
<<script>>
$(document).one(':passageend', () => {
$('#BG').append(
App.MainView.useGuard(),
);
});
<</script>>
<</if>>
<<set $activeSlave = $slaves.random()>>
<<if $activeSlave && ($activeSlave.assignment != "please you") && ($activeSlave.assignment != "guard you")>>
......
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