Commit 8293bd0d authored by JC Brand's avatar JC Brand

Bugfix in jquery element query

parent 0b1900ec
...@@ -2672,7 +2672,7 @@ ...@@ -2672,7 +2672,7 @@
// This is the end of the initialize method. // This is the end of the initialize method.
this.chatboxes = new this.ChatBoxes(); this.chatboxes = new this.ChatBoxes();
this.chatboxesview = new this.ChatBoxesView({model: this.chatboxes}); this.chatboxesview = new this.ChatBoxesView({model: this.chatboxes});
$('toggle-online-users').bind( $('.toggle-online-users').bind(
'click', 'click',
$.proxy(function (e) { $.proxy(function (e) {
e.preventDefault(); this.toggleControlBox(); e.preventDefault(); this.toggleControlBox();
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
expect(converse.connection.muc.removeRoom).toHaveBeenCalled(); expect(converse.connection.muc.removeRoom).toHaveBeenCalled();
expect(view.renderPasswordForm).toHaveBeenCalled(); expect(view.renderPasswordForm).toHaveBeenCalled();
expect($chat_body.find('form.chatroom-form').length).toBe(1); 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)); }, converse));
......
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