From 96f60444893ab6551cca1f1bf8b781e968d64ea1 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 4 May 2016 13:12:46 -0400 Subject: [PATCH] try to make sure e is not null --- contrib/js/reply.js | 1 + contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/js/reply.js b/contrib/js/reply.js index 992d2b0..68252b0 100644 --- a/contrib/js/reply.js +++ b/contrib/js/reply.js @@ -9,6 +9,7 @@ function getReplyTo() { // build a new postform document.dynreply = new DynReply(); } + e = document.dynreply.elem; e.style.position = "fixed"; e.setAttribute("class", "shadow"); } diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 24ccdc5..a7964f4 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -653,7 +653,7 @@ function get_storage(){var st=null;if(window.localStorage){st=window.localStorag return st;} /* local file: ./contrib/js/reply.js */ function getReplyTo(){if(!document.dynreply){var e=document.getElementById("postform_container");if(e){document.dynreply=new DynReply(e);}else{document.dynreply=new DynReply();} -e.style.position="fixed";e.setAttribute("class","shadow");} +e=document.dynreply.elem;e.style.position="fixed";e.setAttribute("class","shadow");} 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