diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/events/BBBEvent.as b/bigbluebutton-client/src/org/bigbluebutton/main/events/BBBEvent.as index 209ec5d6e4..a4d91f7379 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/events/BBBEvent.as +++ b/bigbluebutton-client/src/org/bigbluebutton/main/events/BBBEvent.as @@ -33,7 +33,19 @@ package org.bigbluebutton.main.events { public static const VIDEO_STARTED:String = 'BBB_VIDEO_STARTED'; public static const START_DESKSHARE:String = 'BBB_START_DESKSHARE'; public static const DESKSHARE_STARTED:String = 'BBB_DESKSHARE_STARTED'; + + public static const SETTINGS_CONFIRMED:String = "BBB_SETTINGS_CONFIRMED"; + public static const SETTINGS_CANCELLED:String = "BBB_SETTINGS_CANCELLED"; + public static const ACCEPT_ALL_WAITING_GUESTS:String = "BBB_ACCEPT_ALL_WAITING_GUESTS"; + public static const DENY_ALL_WAITING_GUESTS:String = "BBB_DENY_ALL_WAITING_GUESTS"; + public static const DENY_GUEST:String = "BBB_DENY_GUEST"; + public static const ACCEPT_GUEST:String = "BBB_ACCEPT_GUEST"; + public static const ASK_TO_ACCEPT_GUEST:String = "BBB_ASK_TO_ACCEPT_GUEST"; + + public static const BROADCAST_GUEST_POLICY:String = "BBB_BROADCAST_GUEST_POLICY"; + public static const RETRIEVE_GUEST_POLICY:String = "BBB_RETRIEVE_GUEST_POLICY"; + public var message:String; public var payload:Object = new Object(); diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/maps/ApplicationEventMap.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/maps/ApplicationEventMap.mxml index 436fb30693..dfeb98e0fa 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/maps/ApplicationEventMap.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/maps/ApplicationEventMap.mxml @@ -93,19 +93,19 @@ - + - + - + - + @@ -153,6 +153,7 @@ import org.bigbluebutton.core.managers.ConfigManager; import org.bigbluebutton.core.services.SkinningService; + import org.bigbluebutton.main.events.BBBEvent; import org.bigbluebutton.main.events.ConfigEvent; import org.bigbluebutton.main.events.LogoutEvent; import org.bigbluebutton.main.events.ModuleLoadEvent; diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/model/users/UsersSOService.as b/bigbluebutton-client/src/org/bigbluebutton/main/model/users/UsersSOService.as index eefccabdad..6057e792fa 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/model/users/UsersSOService.as +++ b/bigbluebutton-client/src/org/bigbluebutton/main/model/users/UsersSOService.as @@ -363,7 +363,7 @@ package org.bigbluebutton.main.model.users { } public function guestPolicyChanged(guestPolicy:String):void { - var policy:BBBEvent = new BBBEvent("GET_GUEST_POLICY"); + var policy:BBBEvent = new BBBEvent(BBBEvent.RETRIEVE_GUEST_POLICY); policy.payload['guestPolicy'] = guestPolicy; dispatcher.dispatchEvent(policy); @@ -378,15 +378,15 @@ package org.bigbluebutton.main.model.users { "participants.getGuestPolicy",// Remote function name new Responder( function(result:Object):void { - var policy:BBBEvent = new BBBEvent("GET_GUEST_POLICY"); + var policy:BBBEvent = new BBBEvent(BBBEvent.RETRIEVE_GUEST_POLICY); policy.payload['guestPolicy'] = result; if(UserManager.getInstance().getConference().isGuest()) { if(result == "ALWAYS_DENY") - dispatcher.dispatchEvent(new BBBEvent("DENY_GUEST")); + dispatcher.dispatchEvent(new BBBEvent(BBBEvent.DENY_GUEST)); else if(result == "ALWAYS_ACCEPT") - dispatcher.dispatchEvent(new BBBEvent("ACCEPT_GUEST")); + dispatcher.dispatchEvent(new BBBEvent(BBBEvent.ACCEPT_GUEST)); else - dispatcher.dispatchEvent(new BBBEvent("ASK_TO_ACCEPT_GUEST")); + dispatcher.dispatchEvent(new BBBEvent(BBBEvent.ASK_TO_ACCEPT_GUEST)); } dispatcher.dispatchEvent(policy); }, diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/BBBSettings.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/BBBSettings.mxml index 913608cd8d..2241153d75 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/BBBSettings.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/BBBSettings.mxml @@ -1,6 +1,6 @@ - - - + + + - - - + + + 0) - return true; - else - return false; + return numberOfGuests > 0; } public function removeAll():void { + close(); PopUpManager.removePopUp(this); } + + public function close():void { + rememberCheckBox.selected = false; + this.visible = false; + } private function onModeratorResponse(event:ResponseModeratorEvent):void { remove(event.userid); @@ -146,7 +147,7 @@ - + diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml index afa4d57bc1..bdac55ab42 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainApplicationShell.mxml @@ -47,7 +47,7 @@ - +