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

refresh desc on click

parent 47db0553
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,8 @@ ...@@ -52,6 +52,8 @@
<<run App.UI.SlaveInteract.placeInLine($slaves[_i])>> <<run App.UI.SlaveInteract.placeInLine($slaves[_i])>>
<<set _desc = `<<set $activeSlave = $slaves[_i]>><<include "Long Slave Description">>`>>
<p align="center"> <p align="center">
<<if $cheatMode == 1>> <<if $cheatMode == 1>>
<div style="font-style:italic"> <div style="font-style:italic">
...@@ -77,7 +79,7 @@ ...@@ -77,7 +79,7 @@
[E,→] [E,→]
</span> </span>
</p> </p>
<button class="tablinks" onclick='App.UI.tabbar.openTab(event, 'Description'), App.UI.replace('#LSD', `<<include "Long Slave Description">>`)' id="tab Description">Description</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Description'), App.UI.replace('#LSD', '_desc')" id="tab Description">Description</button>
<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Location')" id="tab Location">Location</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Location')" id="tab Location">Location</button>
<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Appearance'), App.UI.Wardrobe.refreshAll(getSlave(V.activeSlave.ID))" id="tab Appearance">Appearance</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'Appearance'), App.UI.Wardrobe.refreshAll(getSlave(V.activeSlave.ID))" id="tab Appearance">Appearance</button>
<button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'PhysicalRegimen')" id="tab PhysicalRegimen">Physical Regimen</button> <button class="tablinks" onclick="App.UI.tabbar.openTab(event, 'PhysicalRegimen')" id="tab PhysicalRegimen">Physical Regimen</button>
...@@ -118,15 +120,16 @@ ...@@ -118,15 +120,16 @@
<</replace>> <</replace>>
<</link>> <</link>>
<span id="hideOptionPages"></span> <span id="hideOptionPages"></span>
| /*|
/* [[Hide descriptions|Slave Interact][$seeDetails = 0]] [[Hide descriptions|Slave Interact][$seeDetails = 0]]*/
| */ /*| Desc is now refreshed on tab click, but may need this later for an "all" view.
<span style="font-weight:bold"> <span style="font-weight:bold">
<<link "Update">><<replace "#LSD">><<include "Long Slave Description">><</replace>><</link>> <<link "Update">><<replace "#LSD">><<include "Long Slave Description">><</replace>><</link>>
</span> </span>
*/
<p id="optionPages"></p> <p id="optionPages"></p>
</div> </div>
<span id="LSD"><<include "Long Slave Description">></span> <span id="LSD">/*<<include "Long Slave Description">>*/</span>
<<else>> <<else>>
<div style="font-style:italic"> <div style="font-style:italic">
[[Show descriptions|Slave Interact][$seeDetails = 1]] [[Show descriptions|Slave Interact][$seeDetails = 1]]
......
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