From f05d43af895d7a9e3da735f3a5e1a96774d6e21c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 7 Mar 2016 12:05:52 -0500 Subject: [PATCH] fix --- contrib/static/mod.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 1573a00..976b9ed 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -144,19 +144,12 @@ function nntpchan_delete() { function inject_nntp_feed_element(feed, elem) { var name = document.createElement("span"); - var name_elem = document.createElement("span"); - name_elem.value = document.createTextNode("Name: "); - name.appendChild(name_elem); - name_elem = document.createElement("span"); - name_elem.value = document.createTextNode(feed.State.Config.Name); + name_elem = document.createTextNode("Name: "+feed.State.Config.Name); name.appendChild(name_elem); elem.appendChild(name); var conns = document.createElement("span"); - var conns_elem = document.createElement("span"); - conns_elem = document.createTextNode("Connections: "); - conns.appendChild(conns_elem); - conns_elem = document.createTextNode(feed.Conns.length); + conns_elem = document.createTextNode("Connections: "+feed.Conns.length); conns.appendChild(conns_elem); elem.appendChild(conns); }