Implements config property for disabling the prezi button
This commit is contained in:
parent
3b81336b89
commit
ab4ba5a9c3
1
app.js
1
app.js
|
@ -60,6 +60,7 @@ var getVideoPosition;
|
|||
var sessionTerminated = false;
|
||||
|
||||
function init() {
|
||||
Toolbar.setupButtonsFromConfig();
|
||||
RTC = setupRTC();
|
||||
if (RTC === null) {
|
||||
window.location.href = 'webrtcrequired.html';
|
||||
|
|
10
index.html
10
index.html
|
@ -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);'>
|
||||
|
|
10
toolbar.js
10
toolbar.js
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue