aboutsummaryrefslogtreecommitdiff
path: root/static/js/weabotxt.js
diff options
context:
space:
mode:
authorLibravatar Señor X 2019-03-31 06:55:28 -0300
committerLibravatar Señor X 2019-03-31 06:55:28 -0300
commitd7b4cd70a617e95711729f5720cbada4d799ee5e (patch)
tree80d390c496535ec4771220af0ad185019d707177 /static/js/weabotxt.js
parent36026f3edd4c8c2f1a5f00ccd57d21ea2a6792b2 (diff)
downloadweabot-d7b4cd70a617e95711729f5720cbada4d799ee5e.tar.gz
weabot-d7b4cd70a617e95711729f5720cbada4d799ee5e.tar.xz
weabot-d7b4cd70a617e95711729f5720cbada4d799ee5e.zip
Ahora sí
Diffstat (limited to 'static/js/weabotxt.js')
-rw-r--r--static/js/weabotxt.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/static/js/weabotxt.js b/static/js/weabotxt.js
index f4bbe2f..269168e 100644
--- a/static/js/weabotxt.js
+++ b/static/js/weabotxt.js
@@ -248,19 +248,16 @@ document.addEventListener("DOMContentLoaded", function() {
else weabot = {"name":null,"email":null,"password":null};
board = document.body.dataset.brd;
+ var where = document.getElementById(board);
+ if (where) where.className = "cur_brd";
var forms = document.getElementsByTagName("form");
for(var i=0;i<forms.length;i++) { if(forms[i].id.startsWith("postform")) setInputs(forms[i].id); }
- if (document.body.className == "mainpage") {
- var styleSelect = document.getElementById("styles");
- if (styleSelect) {
- styleSelect.addEventListener("change", applyTheme, false);
- styleSelect.value = localStorage.getItem(style_cookie);
- }
-
- var where = document.getElementById(board);
- if (where) where.className = "cur_brd";
+ var styleSelect = document.getElementById("styles");
+ if (styleSelect) {
+ styleSelect.addEventListener("change", applyTheme, false);
+ styleSelect.value = localStorage.getItem(style_cookie);
}
if(localStorage.getItem("shobon_time") != "false")