Skip to content
Snippets Groups Projects
Commit e0273aac authored by Ghaz Triki's avatar Ghaz Triki
Browse files

Containers created with PopUpManager and toolbars are removed from the display...

Containers created with PopUpManager and toolbars are removed from the display list when the user is logged out from the application.
parent a46d3656
No related branches found
No related tags found
No related merge requests found
......@@ -526,9 +526,11 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
logoutWindow.y = point1.y - (logoutWindow.height/2);
logoutWindow.setReason(reason);
mdiCanvas.removeAllWindows();
mdiCanvas.removeAllPopUps();
removeToolBars();
} else {
mdiCanvas.removeAllWindows();
mdiCanvas.removeAllPopUps();
removeToolBars();
var pageHost:String = FlexGlobals.topLevelApplication.url.split("/")[0];
var pageURL:String = FlexGlobals.topLevelApplication.url.split("/")[2];
LOGGER.debug("SingOut to [{0}//{1}/bigbluebutton/api/signOut]", [pageHost, pageURL]);
......@@ -539,6 +541,15 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
urlLoader.load(request);
}
}
/**
* Removes toolbars from the display list.
* Used only when the user completely logged out.
*/
private function removeToolBars():void{
this.removeChild(toolbar);
this.removeChild(controlBar);
}
public function getLogoutUrl():String {
var logoutUrl:String = BBB.initUserConfigManager().getLogoutUrl();
......@@ -562,7 +573,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
var logoutURL:String = getLogoutUrl();
var request:URLRequest = new URLRequest(logoutURL);
LOGGER.debug("Logging out to: {0}", [logoutURL]);
navigateToURL(request, '_self');
//navigateToURL(request, '_self');
}
......
......@@ -79,8 +79,15 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
}
public function removeAllWindows():void{
this.windowManager.removeAll();
/**
* Removes all display list containers created using PopUpManager
*/
public function removeAllPopUps():void{
for (var i:int = systemManager.numChildren-1; i>0; i-=1){
if(!(systemManager.getChildAt(i) is LoggedOutWindow)){
systemManager.removeChildAt(i);
}
}
}
public function resetWindowLayout():void{
......
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