From 74cdeb6072346bff2c549c0aeddd6af69a1b64de Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 7 Aug 2015 11:06:04 -0400 Subject: [PATCH] fix mod.js glitch --- contrib/static/mod.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 506fafd..950cf84 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -102,14 +102,14 @@ function nntpchan_mod(mod_action) { alert("mod action has no handler"); } } + } else { + // nah + // http error + elem.innerHTML = "error: HTTP "+status; } - } else { - // nah - // http error - elem.innerHTML = "error: HTTP "+status; + // clear input + input.value = ""; } - // clear input - input.value = ""; } if (mod_action.name) { var url = mod_action.name + "/" + longhash;