diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/FileUploadWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/FileUploadWindow.mxml
old mode 100755
new mode 100644
index 1fed76fba3..01a6faa788
--- a/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/FileUploadWindow.mxml
+++ b/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/FileUploadWindow.mxml
@@ -42,14 +42,12 @@ with BigBlueButton; if not, see .
.
import org.bigbluebutton.modules.present.model.PresentationModel;
import org.bigbluebutton.util.i18n.ResourceUtil;
- private static const LOG:String = "Present::FileUploadWIndow - ";
-
+ private static const LOG:String = "Present::FileUploadWindow - ";
+
[Bindable] private var presentationNamesAC:ArrayCollection;
[BIndable] public var maxFileSize:Number;
@@ -152,7 +150,13 @@ with BigBlueButton; if not, see .
progressReportBox.visible = true;
progressBar.visible = true;
-
+ okCancelBtn.visible = true;
+
+ disableClosing();
+
+ selectBtn.enabled = false;
+ uploadBtn.enabled = false;
+
if (fileSize > maxFileSizeBytes) {
// Hardcode for now to 30M limit.
// This should be configurable to match what's allowed in nginx. (ralam feb 23, 2010)
@@ -163,19 +167,17 @@ with BigBlueButton; if not, see .
var presentationName:String = StringUtil.trim(fileToUpload.name);
trace(LOG + "Uploading file : " + presentationName);
+ progBarLbl.visible = true;
+
+ lblFileName.enabled = false;
+
+ presentationNamesLb.visible = false;
+
var uploadCmd:UploadFileCommand = new UploadFileCommand();
uploadCmd.filename = presentationName;
uploadCmd.file = fileToUpload;
globalDispatch.dispatchEvent(uploadCmd);
- progBarLbl.visible = true;
-
- okCancelBtn.visible = true;
- selectBtn.enabled = false;
- uploadBtn.enabled = false;
- lblFileName.enabled = false;
-
- presentationNamesLb.visible = false;
}
}
@@ -194,6 +196,8 @@ with BigBlueButton; if not, see .
fileLbl.visible = false;
selectBtn.visible = false;
uploadBtn.visible = false;
+ selectBtn.enabled = false;
+ uploadBtn.enabled = false;
lblFileName.visible = false;
}
@@ -209,7 +213,7 @@ with BigBlueButton; if not, see .
}
private function handleSupportedDocument(e:ConversionSupportedDocEvent):void {
- LogUtil.debug("handleSupportedDocument");
+ trace(LOG + "handleSupportedDocument");
progressBar.label = ResourceUtil.getInstance().getString('bbb.presentation.document.supported');
progressBar.setProgress(0, 100);
progressBar.validateNow();
@@ -226,7 +230,7 @@ with BigBlueButton; if not, see .
}
private function handlePageCountExceeded(e:ConversionPageCountMaxed):void {
- LogUtil.debug("handlePageCountExceeded");
+ trace(LOG + "handlePageCountExceeded");
enableControls();
var message:String = " Maximum supported is " + e.maxPages;
displayAlert(ResourceUtil.getInstance().getString('bbb.presentation.error.convert.maxnbpagereach'), message);
@@ -264,10 +268,17 @@ with BigBlueButton; if not, see .
private function handleConversionCompleted(e:ConversionCompletedEvent):void{
okCancelBtn.label = ResourceUtil.getInstance().getString('bbb.presentation.ok');
- okCancelBtn.visible = true;
+ enableClosing();
globalDispatch.dispatchEvent(new UploadEvent(UploadEvent.CLOSE_UPLOAD_WINDOW));
}
+ private function disableClosing():void {
+ okCancelBtn.enabled = false;
+ }
+
+ private function enableClosing():void {
+ okCancelBtn.enabled = true;
+ }
]]>