Prechádzať zdrojové kódy

Bugfix in jquery element query

JC Brand 12 rokov pred
rodič
commit
8293bd0da5
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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 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();

+ 1 - 1
spec/ChatRoomSpec.js

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