Skip to content
Snippets Groups Projects
Commit 4238b124 authored by Ghazi Triki's avatar Ghazi Triki
Browse files

Switch lock settings "disable webcams" and "webcam only for moderators"...

Switch lock settings "disable webcams" and "webcam only for moderators" states, only one of them can be enabled at the same time.
parent ff7cf434
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,21 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function onCancelClicked():void {
PopUpUtil.removePopUp(this);
}
protected function chkDisableWebcam_changeHandler(event:Event):void
{
if (chkDisableWebcam.selected) {
chkwebcamsOnlyForModerator.selected = false;
}
}
protected function chkwebcamsOnlyForModerator_changeHandler(event:Event):void
{
if (chkwebcamsOnlyForModerator.selected) {
chkDisableWebcam.selected = false;
}
}
]]>
</fx:Script>
......@@ -95,7 +110,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<mx:Label width="70%" styleName="lockSettingsDefaultLabelStyle"
text="{ResourceUtil.getInstance().getString('bbb.lockSettings.webcam')}" />
<mx:HBox width="30%" styleName="lockSettingsCheckboxColumn">
<mx:CheckBox id="chkDisableWebcam" selected="{disableCam}" />
<mx:CheckBox id="chkDisableWebcam" selected="{disableCam}" change="chkDisableWebcam_changeHandler(event)"/>
</mx:HBox>
</mx:HBox>
......@@ -103,7 +118,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<mx:Label width="70%" styleName="lockSettingsDefaultLabelStyle"
text="{ResourceUtil.getInstance().getString('bbb.lockSettings.webcamsOnlyForModerator')}" />
<mx:HBox width="30%" styleName="lockSettingsCheckboxColumn">
<mx:CheckBox id="chkwebcamsOnlyForModerator" selected="{webcamsOnlyForModerator}" />
<mx:CheckBox id="chkwebcamsOnlyForModerator" selected="{webcamsOnlyForModerator}" change="chkwebcamsOnlyForModerator_changeHandler(event)"/>
</mx:HBox>
</mx:HBox>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment