update livechan.js
This commit is contained in:
parent
32566bfd84
commit
671db6e483
@ -857,6 +857,11 @@ ConvoBar.prototype.show = function(msgid) {
|
|||||||
function Chat(domElem, channel, options) {
|
function Chat(domElem, channel, options) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.name = channel.toLowerCase();
|
this.name = channel.toLowerCase();
|
||||||
|
if (this.name == "") {
|
||||||
|
this.name = "ukko";
|
||||||
|
} else {
|
||||||
|
this.name = "overchan." + this.name;
|
||||||
|
}
|
||||||
this.domElem = domElem;
|
this.domElem = domElem;
|
||||||
this.lastOp = null;
|
this.lastOp = null;
|
||||||
if (options) {
|
if (options) {
|
||||||
@ -997,7 +1002,7 @@ Chat.prototype.sendInput = function(event) {
|
|||||||
var board;
|
var board;
|
||||||
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.live";
|
||||||
console.log(board);
|
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) {
|
||||||
|
Reference in New Issue
Block a user