diff --git a/converse.js b/converse.js index 3d401341c..39a4e4e4e 100644 --- a/converse.js +++ b/converse.js @@ -2469,6 +2469,7 @@ 'click .toggle-smiley': 'toggleEmoticonMenu', 'click .toggle-smiley ul li': 'insertEmoticon', 'click .toggle-clear': 'clearChatRoomMessages', + 'click .toggle-call': 'toggleCall', 'click .toggle-participants a': 'toggleOccupants', 'keypress textarea.chat-textarea': 'keyPressed', 'mousedown .dragresize-tm': 'onDragResizeStart' @@ -2538,7 +2539,7 @@ this.toggleOccupants(); return this; }, - + toggleOccupants: function (ev) { if (ev) { ev.preventDefault(); diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 8ea82bdb1..34a5e67ce 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -18,6 +18,8 @@ Changelog * Add offline pretty status to enable translation [thierrytiti] * Add Ping funcionnality and Pong Handler (Fix to issue #144) [thierrytiti] * Add automatic Away mode and XEP-0352 support [thierrytiti] +* MUC: missing toggle Call handler and function [thierrytiti] +* Updated documentation about call [thierrytiti] 0.9.3 (2015-05-01) ------------------ diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index b9ecd3087..233ba0e13 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -560,7 +560,7 @@ Allows you to show or hide buttons on the chat boxes' toolbars. Provides a button with a picture of a telephone on it. When the call button is pressed, it will emit an event that can be used by a third-party library to initiate a call.:: - converse.on('callButtonClicked', function(event, data) { + converse.listen.on('callButtonClicked', function(event, data) { console.log('Strophe connection is', data.connection); console.log('Bare buddy JID is', data.model.get('jid')); // ... Third-party library code ...