Archived
1
0

fixes for liveui

This commit is contained in:
Jeff Becker 2016-07-09 15:39:35 -04:00
parent 4b02ad6d89
commit 32566bfd84
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -998,6 +998,7 @@ Chat.prototype.sendInput = function(event) {
if(convo) if(convo)
board = self.chatElems.convobar.holder[convo].group; board = self.chatElems.convobar.holder[convo].group;
if (!board) board = "overchan.random"; if (!board) board = "overchan.random";
console.log(board);
var subject = self.chatElems.input.subject.value; var subject = self.chatElems.input.subject.value;
self.readImage(inputElem.file, function(fdata, fname, ftype) { self.readImage(inputElem.file, function(fdata, fname, ftype) {
if (fdata) { if (fdata) {
@ -1006,7 +1007,7 @@ Chat.prototype.sendInput = function(event) {
subject: subject, subject: subject,
name: name, name: name,
reference: convo, reference: convo,
board: board, newsgroup: board,
files: [{name: fname, data: fdata, type: ftype}], files: [{name: fname, data: fdata, type: ftype}],
}}); }});
} else { } else {
@ -1015,7 +1016,7 @@ Chat.prototype.sendInput = function(event) {
message: message, message: message,
reference: convo, reference: convo,
name: name, name: name,
board: board, newsgroup: board,
}}); }});
} }
inputElem.file.value = ""; inputElem.file.value = "";