From 06bf0fe04908a884235db3ae242a8f028907046d Mon Sep 17 00:00:00 2001 From: syeshchenko Date: Wed, 5 Feb 2014 11:01:23 -0800 Subject: [PATCH] Add file format hint message --- .../branding/default/style/css/BBBDefault.css | 6 +++- .../locale/en_US/bbbResources.properties | 1 + .../present/ui/views/FileUploadWindow.mxml | 30 +++++++++++++------ 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/bigbluebutton-client/branding/default/style/css/BBBDefault.css b/bigbluebutton-client/branding/default/style/css/BBBDefault.css index 5d7c1b4f11..0f2754837c 100755 --- a/bigbluebutton-client/branding/default/style/css/BBBDefault.css +++ b/bigbluebutton-client/branding/default/style/css/BBBDefault.css @@ -384,7 +384,11 @@ DataGrid { } .presentationNameLabelStyle { - + +} + +.presentationUploadFileFormatHintTextStyle { + fontWeight: bold; } .cameraDisplaySettingsWindowStyle { diff --git a/bigbluebutton-client/locale/en_US/bbbResources.properties b/bigbluebutton-client/locale/en_US/bbbResources.properties index 31be0a72c6..be145ce50a 100755 --- a/bigbluebutton-client/locale/en_US/bbbResources.properties +++ b/bigbluebutton-client/locale/en_US/bbbResources.properties @@ -132,6 +132,7 @@ bbb.fileupload.okCancelBtn = Close bbb.fileupload.okCancelBtn.toolTip = Close the File Upload dialog box bbb.fileupload.genThumbText = Generating thumbnails.. bbb.fileupload.progBarLbl = Progress: +bbb.fileupload.fileFormatHint = *To ensure the best presentation quality it is recommended to convert files into .pdf format before uploading. bbb.chat.title = Chat bbb.chat.quickLink.label = Chat Window bbb.chat.cmpColorPicker.toolTip = Text Color 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 index 3c0b900360..2e92b6967c 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/FileUploadWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/present/ui/views/FileUploadWindow.mxml @@ -22,7 +22,7 @@ with BigBlueButton; if not, see . @@ -130,7 +130,15 @@ with BigBlueButton; if not, see . var fileSize:Number = fileToUpload.size; var maxFileSizeBytes:Number = maxFileSize * 1000000; - progressBar.visible = true; + fileFormatHintLbl.visible = false; + fileFormatHintLbl.includeInLayout = false; + + progressReportBox.includeInLayout = true; + progressReportBox.visible = true; + + progressBar.visible = true; + progressBar.includeInLayout = true; + if (fileSize > maxFileSizeBytes) { // Hardcode for now to 30M limit. // This should be configurable to match what's allowed in nginx. (ralam feb 23, 2010) @@ -159,9 +167,8 @@ with BigBlueButton; if not, see . selectBtn.enabled = false; uploadBtn.enabled = false; fileTxtInput.enabled = false; - + presentationNamesLb.visible = false; - } } @@ -270,7 +277,7 @@ with BigBlueButton; if not, see . - + @@ -284,17 +291,22 @@ with BigBlueButton; if not, see . toolTip="{ResourceUtil.getInstance().getString('bbb.fileupload.uploadBtn.toolTip')}" click="startUpload()" enabled="false" icon="{bulletGoIcon}"/> - + + labelPlacement="center" width="460" visible="false"/> + + + + + - - +