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;
|
var sessionTerminated = false;
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
Toolbar.setupButtonsFromConfig();
|
||||||
RTC = setupRTC();
|
RTC = setupRTC();
|
||||||
if (RTC === null) {
|
if (RTC === null) {
|
||||||
window.location.href = 'webrtcrequired.html';
|
window.location.href = 'webrtcrequired.html';
|
||||||
|
|
10
index.html
10
index.html
|
@ -190,10 +190,12 @@
|
||||||
</a>
|
</a>
|
||||||
<span id="unreadMessages"></span>
|
<span id="unreadMessages"></span>
|
||||||
</span>
|
</span>
|
||||||
<div class="header_button_separator"></div>
|
<span id="prezi_button">
|
||||||
<a class="button" data-toggle="popover" data-placement="bottom" content="Share Prezi" onclick='Prezi.openPreziDialog();'>
|
<div class="header_button_separator"></div>
|
||||||
<i class="icon-prezi"></i>
|
<a class="button" data-toggle="popover" data-placement="bottom" content="Share Prezi" onclick='Prezi.openPreziDialog();'>
|
||||||
</a>
|
<i class="icon-prezi"></i>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
<span id="etherpadButton">
|
<span id="etherpadButton">
|
||||||
<div class="header_button_separator"></div>
|
<div class="header_button_separator"></div>
|
||||||
<a class="button" data-toggle="popover" data-placement="bottom" content="Shared document" onclick='Etherpad.toggleEtherpad(0);'>
|
<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) {
|
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.
|
* Opens the lock room dialog.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue