From 54fde6ae2e7c36d607603f5c56758b6ee6b072dc Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Sep 2017 12:13:28 -0400 Subject: [PATCH] fix js mor --- contrib/static/overchan.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/static/overchan.js b/contrib/static/overchan.js index d6a3c58..c20f2bd 100644 --- a/contrib/static/overchan.js +++ b/contrib/static/overchan.js @@ -131,16 +131,16 @@ onready(function() { console.log(msg, j.url); e.innerHTML = msg; if(window.location.pathname === j.url) { - var img = document.getElementById("captcha_img"); - if (img) { - reloadImg(img); - } reloadThreadJSON(j.message_id); } else if (j && j.url) { // do redirect window.location.pathname = j.url; return; } + var img = document.getElementById("captcha_img"); + if (img) { + reloadImg(img); + } setTimeout(function() { e.disabled = false; e.innerHTML = origText;