bugfixes
diff --git a/scripts/core.js b/scripts/core.js
index 5ef4717..4a0c825 100644
--- a/scripts/core.js
+++ b/scripts/core.js
@@ -1279,7 +1279,7 @@
//Render HTML
jQuery("body").append(/*html*/`
- <div style="line-height: 0;" class="sidebar acrylicMaterial"></div>
+ <div class="sidebar acrylicMaterial"></div>
<!-- Header background elements -->
<div class="cover image"></div>
@@ -1513,7 +1513,11 @@
<h5><b>Debugging</b></h5>
<p>These settings are for development only and might break Power+. Use at your own risk.</p>
- <br />
+ <div>
+ <button onclick="dtps.firstrun()" class="btn small"><i class="material-icons">web_asset</i> Show firstrun screen</button>
+ </div>
+
+ <br /><br />
<h5>Release configuration</h5>
diff --git a/scripts/pages-discussions.js b/scripts/pages-discussions.js
index c071ee3..9fd6679 100644
--- a/scripts/pages-discussions.js
+++ b/scripts/pages-discussions.js
@@ -73,8 +73,8 @@
</div>
</div>
- <p style="text-align: center; font-weight: bold; margin-top: 60px;">No discussions found</p>
- <p style="text-align: center; font-size: 14px;">This class doesn't have any discussions</p>
+ <p style="text-align: center; font-weight: bold; margin-top: 60px; margin-bottom: 10px;">No discussions found</p>
+ <p style="text-align: center; font-size: 14px; margin: 0px;">This class doesn't have any discussions</p>
`);
} else {
//Loop over discusson threads array to create discussion thread HTML for the sidebar
@@ -330,8 +330,8 @@
</div>
</div>
- <p style="text-align: center; font-weight: bold; margin-top: 60px;">No pages found</p>
- <p style="text-align: center; font-size: 14px;">This class doesn't have any pages</p>
+ <p style="text-align: center; font-weight: bold; margin-top: 60px; margin-bottom: 10px;">No pages found</p>
+ <p style="text-align: center; font-size: 14px; margin: 0px;">This class doesn't have any pages</p>
`);
} else {
//Loop over discusson threads array to create discussion thread HTML for the sidebar
diff --git a/scripts/people.js b/scripts/people.js
index a81ec2c..7760e90 100644
--- a/scripts/people.js
+++ b/scripts/people.js
@@ -22,14 +22,17 @@
$("#dtpsTabBar .btn").removeClass("active");
$("#dtpsTabBar .btn.people").addClass("active");
+ //Load class color and things
+ dtps.presentClass(classNum);
+
+ //Ensure classes are shown in the sidebar
+ dtps.showClasses();
+
if (classNum == -1) {
//Class does not exist
dtps.error("The selected class doesn't exist", "classNum check failed @ dtps.usersList");
}
- //Load class color and things
- dtps.presentClass(classNum);
-
if ((dtps.selectedClass == classNum) && (dtps.selectedContent == "people")) {
jQuery(".classContent").html(`<div class="spinner"></div>`);
}