diff --git a/index.html b/index.html index 59110b177..c826fc938 100644 --- a/index.html +++ b/index.html @@ -201,6 +201,11 @@ +
diff --git a/lang/main.json b/lang/main.json index 1de3a98fe..5f4c6252d 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 14939bf2b..9df68bd22 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.