From 048300d6e43429432d7f144c853d76f5fc0177b3 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 12:56:24 -0400 Subject: [PATCH] fix js id for postform_container --- contrib/js/backlink.js | 4 ++-- contrib/static/nntpchan.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 271dfda..1cfd3db 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -3,7 +3,7 @@ var dynreply; function getReplyTo() { if(!dynreply) { - var e = document.getElementById("postform-container"); + var e = document.getElementById("postform_container"); if (e) { // use existing postform dynreply = new DynReply(e); @@ -44,7 +44,7 @@ function DynReply(existingElem) { // build new post form var elem = document.createElement("div"); - elem.setAttribute("id", "postform-container"); + elem.setAttribute("id", "postform_container"); this.elem = elem; // build post form this.form = document.createElement("form"); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 117e4b7..5856d3c 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -11,12 +11,12 @@ handler(j);}};ajax.open("GET",url);ajax.send();} function nntpchan_buildpost(parent,j){var post=document.createElement("div");if(j){post.innerHTML=j.PostMarkup;inject_hover_for_element(post);}else{post.setAttribute("class","notfound post");post.appendChild(document.createTextNode("post not found"));} parent.appendChild(post);} /* ./contrib/js/backlink.js */ -var dynreply;function getReplyTo(){if(!dynreply){var e=document.getElementById("postform-container");if(e){dynreply=new DynReply(e);}else{dynreply=new DynReply();}} +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 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