From aba26b4a8731a3485eba3d0a7d0d1d3f2401ac66 Mon Sep 17 00:00:00 2001 From: Terry Date: Fri, 29 Mar 2019 11:19:08 -0300 Subject: size 🤡 --- static/js/autorefresh.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'static/js') diff --git a/static/js/autorefresh.js b/static/js/autorefresh.js index 9aa6e0e..b09758c 100644 --- a/static/js/autorefresh.js +++ b/static/js/autorefresh.js @@ -35,10 +35,10 @@ function loadJSON() { } function updateThread(posts, total_replies, serverTime) { - thread_div = document.getElementsByClassName("thread")[0]; - - - for (var i = 0; i < posts.length; i++) { + var thread_div = document.getElementsByClassName("thread")[0]; + if (serviceType == 2) var last_elem = document.getElementById("size"); + else var last_elem = document.getElementsByClassName("cut")[0]; + for (var i=0; i 0) { -- cgit v1.2.1-18-gbd029