瀏覽代碼

Bugfix in jquery element query

JC Brand 12 年之前
父節點
當前提交
8293bd0da5
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      converse.js
  2. 1 1
      spec/ChatRoomSpec.js

+ 1 - 1
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();

+ 1 - 1
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));