From b2201c4ef7b35d4717825ab240474a914c187cf2 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 5 Jul 2016 12:58:13 -0400 Subject: [PATCH] add subjects --- contrib/js/livechan.js | 4 ++-- contrib/static/livechan.css | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/js/livechan.js b/contrib/js/livechan.js index ddcbc2e..e28fbba 100644 --- a/contrib/js/livechan.js +++ b/contrib/js/livechan.js @@ -943,7 +943,7 @@ Chat.prototype.sendInput = function(event) { var message = inputElem.message.value; var name = inputElem.name.value; var convo = self.chatElems.convobar.active; - var subject = self.chatElems.convobar.subject.value; + var subject = self.chatElems.input.subject.value; self.readImage(inputElem.file, function(fdata, fname, ftype) { if (fdata) { connection.send({Type: "post", Post: { @@ -1159,7 +1159,7 @@ Chat.prototype.generateChat = function(data) { chat.className = 'livechan_chat_output_chat livechan_chat_convo_' + convo.id; var convoLabel = document.createElement('span'); convoLabel.className = 'livechan_convo_label'; - convoLabel.appendChild(document.createTextNode(convo.subject)); + convoLabel.appendChild(document.createTextNode(data.PostSubject)); var header = document.createElement('div'); header.className = 'livechan_chat_output_header'; diff --git a/contrib/static/livechan.css b/contrib/static/livechan.css index 9a17115..22d559a 100644 --- a/contrib/static/livechan.css +++ b/contrib/static/livechan.css @@ -131,6 +131,8 @@ input, textarea, select { .livechan_convo_label { padding: 5px; + color: #a239ab; + font-weight: bold; } .livechan_convobar_root {