Use ; Do only one dom insertion in case of /help
This commit is contained in:
parent
6afb091d12
commit
300b069a0e
@ -792,7 +792,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
$('body').append($(this.el).hide());
|
$('body').append(this.$el.hide());
|
||||||
},
|
},
|
||||||
|
|
||||||
template: _.template(
|
template: _.template(
|
||||||
@ -905,8 +905,8 @@
|
|||||||
break;
|
break;
|
||||||
case 'help':
|
case 'help':
|
||||||
$chat_content = this.$el.find('.chat-content');
|
$chat_content = this.$el.find('.chat-content');
|
||||||
$chat_content.append($('<div class="chat-help"><strong>/help</strong>: Show this menu</div>'));
|
$chat_content.append('<div class="chat-help"><strong>/help</strong>: Show this menu</div>' +
|
||||||
$chat_content.append($('<div class="chat-help"><strong>/topic</strong>: Set chatroom topic</div>'));
|
'<div class="chat-help"><strong>/topic</strong>: Set chatroom topic</div>');
|
||||||
/* TODO:
|
/* TODO:
|
||||||
$chat_content.append($('<div class="chat-help"><strong>/kick</strong>: Kick out user</div>'));
|
$chat_content.append($('<div class="chat-help"><strong>/kick</strong>: Kick out user</div>'));
|
||||||
$chat_content.append($('<div class="chat-help"><strong>/ban</strong>: Ban user</div>'));
|
$chat_content.append($('<div class="chat-help"><strong>/ban</strong>: Ban user</div>'));
|
||||||
|
Loading…
Reference in New Issue
Block a user