Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds a (hidden) dialpad button to the toolbar.

Boris Grozev8075d0a0fd16
diff --git a/index.html b/index.html
index 59110b1775..c826fc9383 100644
--- a/index.html
+++ b/index.html
@@ -201,6 +201,11 @@
<a class="button" id="toolbar_button_sip" data-container="body" data-toggle="popover" data-placement="bottom" content="Call SIP number" data-i18n="[content]toolbar.sip">
<i class="icon-telephone"></i></a>
</span>
+ <span id="dialPadButton" style="display: none">
+ <div class="header_button_separator"></div>
+ <a class="button" id="toolbar_button_dialpad" data-container="body" data-toggle="popover" data-placement="bottom" content="Open dialpad" data-i18n="[content]toolbar.dialpad">
+ <i class="icon-dialpad"></i></a>
+ </span>
<div class="header_button_separator"></div>
<a class="button" id="toolbar_button_settings" data-container="body" data-toggle="popover" data-placement="bottom" content="Settings" data-i18n="[content]toolbar.Settings">
<i id="settingsButton" class="icon-settings"></i>
diff --git a/lang/main.json b/lang/main.json
index 1de3a98fe5..5f4c6252d1 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -62,7 +62,8 @@
"Settings": "Settings",
"hangup": "Hang Up",
"login": "Login",
- "logout": "Logout"
+ "logout": "Logout",
+ "dialpad": "Show dialpad"
},
"bottomtoolbar": {
"chat": "Open / close chat",
diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js
index 14939bf2bb..9df68bd221 100644
--- a/modules/UI/toolbars/Toolbar.js
+++ b/modules/UI/toolbars/Toolbar.js
@@ -54,6 +54,9 @@ var buttonHandlers =
"toolbar_button_sip": function () {
return callSipButtonClicked();
},
+ "toolbar_button_dialpad": function () {
+ return dialpadButtonClicked();
+ },
"toolbar_button_settings": function () {
PanelToggler.toggleSettingsMenu();
},
@@ -221,6 +224,11 @@ function inviteParticipants() {
window.open("mailto:?subject=" + subject + "&body=" + body, '_blank');
}
+function dialpadButtonClicked()
+{
+ //TODO show the dialpad window
+}
+
function callSipButtonClicked()
{
var defaultNumber
@@ -568,6 +576,15 @@ var Toolbar = (function (my) {
}
};
+ // Shows or hides the dialpad button
+ my.showDialPadButton = function (show) {
+ if (show) {
+ $('#dialPadButton').css({display: "inline-block"});
+ } else {
+ $('#dialPadButton').css({display: "none"});
+ }
+ };
+
/**
* Displays user authenticated identity name(login).
* @param authIdentity identity name to be displayed.