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 = "";