From f0a9a67c299016e502a7a8316228a0ab1955498b Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 16 Jan 2017 10:35:44 -0500 Subject: [PATCH] fix case --- contrib/js/nntpchan/report.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/js/nntpchan/report.js b/contrib/js/nntpchan/report.js index 6310c6b..c6e1f42 100644 --- a/contrib/js/nntpchan/report.js +++ b/contrib/js/nntpchan/report.js @@ -32,7 +32,10 @@ function nntpchan_submit_censor(form, regular_url) { var result = document.getElementById("nntpchan_censor_result"); var show_result = function(msg) { - result.innerHTML = msg; + while(result.children.length > 0) { + result.children[0].remove(); + } + result.appendChild(document.createTextNode(msg)); } var handle_result = function(j) {