Commit ec39e6e8 authored by JC Brand's avatar JC Brand

Emit new event onChatBoxToggled

parent b14538b4
......@@ -1318,6 +1318,7 @@
// Toggle drag resize ability
this.$el.find('.dragresize-tm').toggle();
this.setChatBoxHeight(this.height);
converse.emit('onChatBoxToggled', this);
},
updateVCard: function () {
......
......@@ -805,6 +805,12 @@ Here are the different events that are emitted:
Triggered whenever the roster view (i.e. the rendered HTML) has changed.
* **onChatBoxClosed**
``converse.on('onChatBoxClosed', function (chatbox) { ... });``
Triggered when a chat box has been closed.
* **onChatBoxFocused**
``converse.on('onChatBoxFocused', function (chatbox) { ... });``
......@@ -817,11 +823,11 @@ Here are the different events that are emitted:
Triggered when a chat box has been opened.
* **onChatBoxClosed**
* **onChatBoxToggled**
``converse.on('onChatBoxClosed', function (chatbox) { ... });``
``converse.on('onChatBoxToggled', function (chatbox) { ... });``
Triggered when a chat box has been closed.
Triggered when a chat box has been minimized or maximized.
* **onStatusChanged**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment