Commit 300b069a authored by ichim-david's avatar ichim-david

Use ; Do only one dom insertion in case of /help

parent 6afb091d
...@@ -792,7 +792,7 @@ ...@@ -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 @@ ...@@ -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>'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment