Browse Source

onChatBoxFetched renamed to onChatBoxesFetched

JC Brand 9 years ago
parent
commit
d192b34919
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/converse-controlbox.js
  2. 2 2
      src/converse-core.js

+ 1 - 1
src/converse-controlbox.js

@@ -62,7 +62,7 @@
             },
             },
 
 
             ChatBoxes: {
             ChatBoxes: {
-                onChatBoxFetched: function (collection, resp) {
+                onChatBoxesFetched: function (collection, resp) {
                     collection.each(function (chatbox) {
                     collection.each(function (chatbox) {
                         if (chatbox.get('id') !== 'controlbox' && !chatbox.get('minimized')) {
                         if (chatbox.get('id') !== 'controlbox' && !chatbox.get('minimized')) {
                             chatbox.trigger('show');
                             chatbox.trigger('show');

+ 2 - 2
src/converse-core.js

@@ -2312,7 +2312,7 @@
                     }.bind(this), null, 'message', 'chat');
                     }.bind(this), null, 'message', 'chat');
             },
             },
 
 
-            onChatBoxFetched: function (collection, resp) {
+            onChatBoxesFetched: function (collection, resp) {
                 /* Show chat boxes upon receiving them from sessionStorage
                 /* Show chat boxes upon receiving them from sessionStorage
                  *
                  *
                  * This method gets overridden entirely in src/converse-controlbox.js
                  * This method gets overridden entirely in src/converse-controlbox.js
@@ -2331,7 +2331,7 @@
                 this.registerMessageHandler();
                 this.registerMessageHandler();
                 this.fetch({
                 this.fetch({
                     add: true,
                     add: true,
-                    success: this.onChatBoxFetched.bind(this)
+                    success: this.onChatBoxesFetched.bind(this)
                 });
                 });
             },
             },