From 6d6ba47b2c655ad4715f6152f0c60348bd73b84a Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 16:08:11 -0400 Subject: [PATCH] try fixing async posting --- contrib/js/backlink.js | 3 ++- contrib/static/nntpchan.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 774b480..ccd59b2 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -39,6 +39,8 @@ function DynReply(existingElem) { this.elem = existingElem; this.form = this.elem.querySelector("form"); this._error = document.getElementById("postform_msg"); + var e = document.getElementById("postform_submit"); + e.setAttribute("type", "button"); return; } @@ -76,7 +78,6 @@ function DynReply(existingElem) { elem = document.createElement("input"); elem.setAttribute("name", "subject"); elem.setAttribute("value", ""); - // submit var submit = document.createElement("input"); submit.setAttribute("value", "reply"); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 59cc65b..d18d28f 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -15,7 +15,7 @@ var dynreply;function getReplyTo(){if(!dynreply){var e=document.getElementById(" 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