Browse Source

Merge branch 'thierrytiti-MUC-toggle-Call'

JC Brand 10 years ago
parent
commit
7481fab034
3 changed files with 5 additions and 2 deletions
  1. 2 1
      converse.js
  2. 2 0
      docs/CHANGES.rst
  3. 1 1
      docs/source/configuration.rst

+ 2 - 1
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();

+ 2 - 0
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)
 ------------------

+ 1 - 1
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 ...