From d192b349197efde6ed7f2498e2a91948b69289a9 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 9 Mar 2016 10:54:50 +0000 Subject: [PATCH] onChatBoxFetched renamed to onChatBoxesFetched --- src/converse-controlbox.js | 2 +- src/converse-core.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/converse-controlbox.js b/src/converse-controlbox.js index e7aca64ab..3e943c1c4 100644 --- a/src/converse-controlbox.js +++ b/src/converse-controlbox.js @@ -62,7 +62,7 @@ }, ChatBoxes: { - onChatBoxFetched: function (collection, resp) { + onChatBoxesFetched: function (collection, resp) { collection.each(function (chatbox) { if (chatbox.get('id') !== 'controlbox' && !chatbox.get('minimized')) { chatbox.trigger('show'); diff --git a/src/converse-core.js b/src/converse-core.js index 83cbf17b8..f231d7648 100755 --- a/src/converse-core.js +++ b/src/converse-core.js @@ -2312,7 +2312,7 @@ }.bind(this), null, 'message', 'chat'); }, - onChatBoxFetched: function (collection, resp) { + onChatBoxesFetched: function (collection, resp) { /* Show chat boxes upon receiving them from sessionStorage * * This method gets overridden entirely in src/converse-controlbox.js @@ -2331,7 +2331,7 @@ this.registerMessageHandler(); this.fetch({ add: true, - success: this.onChatBoxFetched.bind(this) + success: this.onChatBoxesFetched.bind(this) }); },