[jitsi-dev] jitmeet: Selectively suppress 'lock' and 'invite' buttons


#1

It occurs to me that the 'lock' and 'invite' buttons might only be relevant to the conference moderator - at least in some applications. The following allows toggling their display based on config parameters and evaluation of moderator status (basically the same as prezi button config). Let me know if this is acceptable to change in the source.

Thanks,
John

1. In Index.html create spans for lock and invite ...

</span>

<span id="lock_button">

<div class="header_button_separator"></div>

<a class="button" id="toolbar_button_security" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.lock$

    <i id="lockIcon" class="icon-security"></i>

</a>

<div class="header_button_separator"></div>

</span>

<span id="invite_button">

<a class="button" id="toolbar_button_link" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.invite" $

    <i class="icon-link"></i>

</a>

<div class="header_button_separator"></div>

</span>

2. In app.bundle.js v25, add code to line 1710 or so...

if (config.displayLockModerator && !isModerator)

{

    $("#lock_button").css({display: "none"});

}

if (config.displayInviteModerator && !isModerator)

{

    $("#invite_button").css({display: "none"});

}

3. In config.js, add displayLockModerator and displayInviteModerator parameters with a value of true to display only for moderator and false to display for everyone.