From 1a3fe3af6618f1c0e86b4d17457b0fa40e2a10f3 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 16:09:59 -0400 Subject: [PATCH] try fixing bug where reply box exists but doesn't submit --- contrib/js/backlink.js | 1 + contrib/static/nntpchan.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index ccd59b2..83f49fa 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -39,6 +39,7 @@ function DynReply(existingElem) { this.elem = existingElem; this.form = this.elem.querySelector("form"); this._error = document.getElementById("postform_msg"); + this.url = this.form.action + "?t=json"; var e = document.getElementById("postform_submit"); e.setAttribute("type", "button"); return; diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index d18d28f..4be1042 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