From 300b069a0e8c74b80e18232d0e62a6bdc8e63db3 Mon Sep 17 00:00:00 2001 From: ichim-david Date: Fri, 1 Mar 2013 21:53:48 +0200 Subject: [PATCH] Use ; Do only one dom insertion in case of /help --- converse.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/converse.js b/converse.js index 26161a171..fb307241e 100644 --- a/converse.js +++ b/converse.js @@ -792,7 +792,7 @@ }, initialize: function () { - $('body').append($(this.el).hide()); + $('body').append(this.$el.hide()); }, template: _.template( @@ -905,8 +905,8 @@ break; case 'help': $chat_content = this.$el.find('.chat-content'); - $chat_content.append($('
/help: Show this menu
')); - $chat_content.append($('
/topic: Set chatroom topic
')); + $chat_content.append('
/help: Show this menu
' + + '
/topic: Set chatroom topic
'); /* TODO: $chat_content.append($('
/kick: Kick out user
')); $chat_content.append($('
/ban: Ban user
'));