Bugfix in jquery element query

This commit is contained in:
JC Brand 2013-06-02 22:32:33 +02:00
parent 0b1900ecb1
commit 8293bd0da5
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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));