From d0d1bed10ae5809d1204d840c74dd3b1d22653be Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 3 May 2016 14:27:07 -0400 Subject: [PATCH] try fix --- contrib/js/reply.js | 10 ++++------ contrib/static/nntpchan.js | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index 795c162..bfbe649 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -1,18 +1,16 @@ -var dynreply; - function getReplyTo() { - if(!dynreply) { + if(!document.dynreply) { var e = document.getElementById("postform_container"); if (e) { // use existing postform - dynreply = new DynReply(e); + document.dynreply = new DynReply(e); } else { // build a new postform - dynreply = new DynReply(); + document.dynreply = new DynReply(); } } - return dynreply; + return document.dynreply; } function table_insert_row(table, header, items) { diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 105eb6e..e512251 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -45,8 +45,8 @@ function ukko_livechan(prefix){var ukko=document.getElementById("ukko_threads"); function get_storage(){var st=null;if(window.localStorage){st=window.localStorage;}else if(localStorage){st=localStorage;} return st;} /* ./contrib/js/reply.js */ -var dynreply;function getReplyTo(){if(!dynreply){var e=document.getElementById("postform_container");if(e){dynreply=new DynReply(e);}else{dynreply=new DynReply();}} -return dynreply;} +function getReplyTo(){if(!document.dynreply){var e=document.getElementById("postform_container");if(e){document.dynreply=new DynReply(e);}else{document.dynreply=new DynReply();}} +return document.dynreply;} function table_insert_row(table,header,items){var tr=document.createElement("tr");var th=document.createElement("th");th.appendChild(header);tr.appendChild(th);for(var idx=0;idx