Fixed close button on file upload window
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@694 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
a6e46a2b51
commit
9e92340a71
@ -55,6 +55,7 @@ package org.bigbluebutton.modules.presentation
|
||||
public static const CLOSE_WINDOW:String = 'CLOSE_WINDOW';
|
||||
public static const ADD_WINDOW:String = 'ADD_WINDOW';
|
||||
public static const REMOVE_WINDOW:String = 'REMOVE_WINDOW';
|
||||
public static const REMOVE_UPLOAD_WINDOW:String = "REMOVE_UPLOAD_WINDOW";
|
||||
|
||||
public static const PRESENTATION_LOADED:String = 'PRESENTATION_LOADED';
|
||||
|
||||
|
@ -24,7 +24,6 @@ package org.bigbluebutton.modules.presentation.view
|
||||
import flash.net.FileReference;
|
||||
|
||||
import mx.controls.Alert;
|
||||
import mx.managers.PopUpManager;
|
||||
|
||||
import org.bigbluebutton.modules.presentation.PresentModuleConstants;
|
||||
import org.bigbluebutton.modules.presentation.controller.notifiers.ProgressNotifier;
|
||||
@ -103,6 +102,8 @@ package org.bigbluebutton.modules.presentation.view
|
||||
private function closeWindow():void{
|
||||
if (okState) {
|
||||
sendNotification(PresentModuleConstants.READY_EVENT);
|
||||
} else{
|
||||
sendNotification(PresentModuleConstants.REMOVE_UPLOAD_WINDOW);
|
||||
}
|
||||
enableControls();
|
||||
}
|
||||
|
@ -113,7 +113,8 @@ package org.bigbluebutton.modules.presentation.view
|
||||
PresentModuleConstants.START_SHARE,
|
||||
PresentModuleConstants.DISPLAY_SLIDE,
|
||||
PresentModuleConstants.PRESENTER_MODE,
|
||||
PresentModuleConstants.VIEWER_MODE
|
||||
PresentModuleConstants.VIEWER_MODE,
|
||||
PresentModuleConstants.REMOVE_UPLOAD_WINDOW
|
||||
];
|
||||
}
|
||||
|
||||
@ -164,6 +165,9 @@ package org.bigbluebutton.modules.presentation.view
|
||||
var slidenum:int = notification.getBody() as int;
|
||||
handleDisplaySlide(slidenum);
|
||||
break;
|
||||
case PresentModuleConstants.REMOVE_UPLOAD_WINDOW:
|
||||
removeFileUploadPopup();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -245,6 +249,13 @@ package org.bigbluebutton.modules.presentation.view
|
||||
proxy.getCurrentSlideNumber();
|
||||
}
|
||||
}
|
||||
|
||||
private function removeFileUploadPopup():void{
|
||||
//Remove the upload window
|
||||
PopUpManager.removePopUp(_presWin.uploadWindow);
|
||||
//Remove the mediator
|
||||
facade.removeMediator(FileUploadWindowMediator.NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles a received View notification
|
||||
|
Loading…
Reference in New Issue
Block a user