Implements config property for disabling the prezi button

This commit is contained in:
hristoterezov 2014-09-23 15:27:12 +03:00
parent 3b81336b89
commit ab4ba5a9c3
3 changed files with 17 additions and 4 deletions

1
app.js
View File

@ -60,6 +60,7 @@ var getVideoPosition;
var sessionTerminated = false;
function init() {
Toolbar.setupButtonsFromConfig();
RTC = setupRTC();
if (RTC === null) {
window.location.href = 'webrtcrequired.html';

View File

@ -190,10 +190,12 @@
</a>
<span id="unreadMessages"></span>
</span>
<div class="header_button_separator"></div>
<a class="button" data-toggle="popover" data-placement="bottom" content="Share Prezi" onclick='Prezi.openPreziDialog();'>
<i class="icon-prezi"></i>
</a>
<span id="prezi_button">
<div class="header_button_separator"></div>
<a class="button" data-toggle="popover" data-placement="bottom" content="Share Prezi" onclick='Prezi.openPreziDialog();'>
<i class="icon-prezi"></i>
</a>
</span>
<span id="etherpadButton">
<div class="header_button_separator"></div>
<a class="button" data-toggle="popover" data-placement="bottom" content="Shared document" onclick='Etherpad.toggleEtherpad(0);'>

View File

@ -1,5 +1,15 @@
var Toolbar = (function (my) {
/**
* Disables and enables some of the buttons.
*/
my.setupButtonsFromConfig = function () {
if(config.disablePrezi)
{
$("#prezi_button").css({display: "none"});
}
}
/**
* Opens the lock room dialog.
*/