From a5c2f8d86f871856dc17deb384f5968e624c7c88 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 9 Jul 2016 14:48:06 -0400 Subject: [PATCH] update livechan for ukko view --- contrib/js/livechan.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/js/livechan.js b/contrib/js/livechan.js index 1e9912b..8f10888 100644 --- a/contrib/js/livechan.js +++ b/contrib/js/livechan.js @@ -753,6 +753,7 @@ ConvoBar.prototype.registerConvo = function(msgid, data) { msgid: data.Message_id, id: max_id + 1, posts: [], + group: data.Newsgroup, ShortHash: data.ShortHash, select: function() { console.log("selected convo "+msgid); @@ -993,6 +994,10 @@ Chat.prototype.sendInput = function(event) { var message = inputElem.message.value; var name = inputElem.name.value; var convo = self.chatElems.convobar.active; + var board; + if(convo) + board = self.chatElems.convobar.holder[convo].group; + if (!board) board = "overchan.random"; var subject = self.chatElems.input.subject.value; self.readImage(inputElem.file, function(fdata, fname, ftype) { if (fdata) { @@ -1001,6 +1006,7 @@ Chat.prototype.sendInput = function(event) { subject: subject, name: name, reference: convo, + board: board, files: [{name: fname, data: fdata, type: ftype}], }}); } else { @@ -1009,6 +1015,7 @@ Chat.prototype.sendInput = function(event) { message: message, reference: convo, name: name, + board: board, }}); } inputElem.file.value = "";