From 8293bd0da541d29226615d607cea9debb2f6b282 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 2 Jun 2013 22:32:33 +0200 Subject: [PATCH] Bugfix in jquery element query --- converse.js | 2 +- spec/ChatRoomSpec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/converse.js b/converse.js index bda326b8e..18df1ea37 100644 --- a/converse.js +++ b/converse.js @@ -2672,7 +2672,7 @@ // This is the end of the initialize method. this.chatboxes = new this.ChatBoxes(); this.chatboxesview = new this.ChatBoxesView({model: this.chatboxes}); - $('toggle-online-users').bind( + $('.toggle-online-users').bind( 'click', $.proxy(function (e) { e.preventDefault(); this.toggleControlBox(); diff --git a/spec/ChatRoomSpec.js b/spec/ChatRoomSpec.js index 5eb2e1dd0..7de5184d9 100644 --- a/spec/ChatRoomSpec.js +++ b/spec/ChatRoomSpec.js @@ -147,7 +147,7 @@ expect(converse.connection.muc.removeRoom).toHaveBeenCalled(); expect(view.renderPasswordForm).toHaveBeenCalled(); expect($chat_body.find('form.chatroom-form').length).toBe(1); - expect($chat_body.find('legend').text()).toBe('This chat room requires a password'); + expect($chat_body.find('legend').text()).toBe('This chatroom requires a password'); }); }, converse));