From df82b74482a8a4c423320775796d7c34dfedceda Mon Sep 17 00:00:00 2001 From: Señor X Date: Sun, 31 Mar 2019 06:35:04 -0300 Subject: Agregando delegación a # y del en BBS --- static/js/autorefresh.js | 2 +- static/js/weabot.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'static') diff --git a/static/js/autorefresh.js b/static/js/autorefresh.js index b09758c..31cecbf 100644 --- a/static/js/autorefresh.js +++ b/static/js/autorefresh.js @@ -58,7 +58,7 @@ function updateThread(posts, total_replies, serverTime) { if (post.IS_DELETED == 1) div.innerHTML = '

' + num + ' : Mensaje eliminado por el usuario.

'; else if (post.IS_DELETED == 2) div.innerHTML = '

' + num + ' : Mensaje eliminado por miembro del staff.

'; else - div.innerHTML = '

' + num + ' : ' + s_name + ' : ' + post.timestamp_formatted + ' rep del

' + s_img + '
' + post.message + '
'; + div.innerHTML = '

' + num + ' : ' + s_name + ' : ' + post.timestamp_formatted + ' rep del

' + s_img + '
' + post.message + '
'; } else { if (post.file) { if (post.image_width != 0) { diff --git a/static/js/weabot.js b/static/js/weabot.js index 0adc2e1..da0ba83 100644 --- a/static/js/weabot.js +++ b/static/js/weabot.js @@ -365,6 +365,8 @@ document.addEventListener("DOMContentLoaded", function(e) { checkhighlight(); if (localStorage.hasOwnProperty("weabot")) weabot = JSON.parse(localStorage.getItem("weabot")); else weabot = {"name":null,"email":null,"password":null}; + + board = document.getElementsByName("board")[0].value; if(localStorage.hasOwnProperty("hiddenthreads")) { hiddenthreads = localStorage.getItem("hiddenthreads").split("!"); @@ -391,7 +393,7 @@ document.addEventListener("DOMContentLoaded", function(e) { var dts = document.getElementsByClassName("date"); if (dts[0].dataset.unix) { week = ["dom", "lun", "mar", "mie", "jue", "vie", "sab"]; - if (document.getElementsByName("board")[0].value == "2d") week = ["日", "月", "火", "水", "木", "金", "土"]; + if (board == "2d") week = ["日", "月", "火", "水", "木", "金", "土"]; for(var d=0;d