Skip to content

Commit

Permalink
- fix cast exception on file upload
Browse files Browse the repository at this point in the history
 - fix "undefined" on fileupload window
  • Loading branch information
ritzalam committed Feb 24, 2012
1 parent b09ed1c commit c23b3be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ public void handleReceivedMessage(Map mapMessage) {
conversionUpdatesProcessor.process(message);
}
else if(messageKey.equalsIgnoreCase(PAGE_COUNT_EXCEEDED_KEY)){
String numberOfPages = (String) mapMessage.get("numberOfPages");
String maxNumberPages = (String) mapMessage.get("maxNumberPages");
Integer numberOfPages = new Integer((String) mapMessage.get("numberOfPages"));
Integer maxNumberPages = new Integer((String) mapMessage.get("maxNumberPages"));
message.put("numberOfPages", numberOfPages);
message.put("maxNumberPages", maxNumberPages);
conversionUpdatesProcessor.process(message);
}
else if(messageKey.equalsIgnoreCase(GENERATED_SLIDE_KEY)){
String numberOfPages = (String) mapMessage.get("numberOfPages");
String pagesCompleted = (String) mapMessage.get("pagesCompleted");
Integer numberOfPages = new Integer((String)mapMessage.get("numberOfPages"));
Integer pagesCompleted = new Integer((String)mapMessage.get("pagesCompleted"));
message.put("numberOfPages", numberOfPages);
message.put("pagesCompleted", pagesCompleted);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,13 @@
<mx:Script>
<![CDATA[
import org.bigbluebutton.common.LogUtil;
import com.asfusion.mate.events.Dispatcher;
import com.asfusion.mate.events.Dispatcher;
import mx.collections.*;
import mx.events.FlexEvent;
import mx.events.ValidationResultEvent;
import mx.managers.PopUpManager;
import mx.utils.*;
import mx.validators.*;
import mx.utils.*;
import mx.validators.*;
import org.bigbluebutton.common.Images;
import org.bigbluebutton.modules.present.events.RemovePresentationEvent;
import org.bigbluebutton.modules.present.events.UploadEvent;
Expand Down Expand Up @@ -189,8 +186,7 @@
presentationNamesCombobox.visible = false;
deleteBtn.visible = false;
showBtn.visible = false;
}
}
}
private function uploadProgressUpdate(e:UploadEvent):void{
Expand All @@ -203,8 +199,8 @@
}
private function uploadComplete(e:UploadEvent):void{
progressLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.uploadcomplete')
progressBar.label = ResourceUtil.getInstance().getString('bbb.presentation.uploadwindow.uploadsuccessful');
progressLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.uploadcomplete');
progressBar.label = ResourceUtil.getInstance().getString('bbb.presentation.uploadcomplete');
progressBar.setProgress(0, 100);
progressBar.validateNow();
progressLbl.validateNow();
Expand All @@ -221,7 +217,7 @@
}
private function handleOfficeDocumentConversionSuccess(e:UploadEvent):void {
progressLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.document.converted')
progressLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.document.converted');
progressBar.label = ResourceUtil.getInstance().getString('bbb.presentation.document.converted');
progressBar.setProgress(0, 100);
progressBar.validateNow();
Expand All @@ -230,7 +226,7 @@
private function handleSupportedDocument(e:UploadEvent):void {
LogUtil.debug("handleSupportedDocument");
progressLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.document.supported')
progressLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.document.supported');
progressBar.label = ResourceUtil.getInstance().getString('bbb.presentation.document.supported');
progressBar.setProgress(0, 100);
progressBar.validateNow();
Expand Down Expand Up @@ -323,7 +319,7 @@
enabled="false" icon="{bulletGoIcon}" x="466" y="9"/>

<mx:Label id="progBarLbl" text="{ResourceUtil.getInstance().getString('bbb.fileupload.progBarLbl')}" x="21" y="75" visible="false"/>
<mx:ProgressBar id="progressBar" mode="manual" label="" labelPlacement="center" width="460" y="75" x="87" visible="false"/>
<mx:ProgressBar id="progressBar" mode="manual" label="{ResourceUtil.getInstance().getString('bbb.fileupload.progBarLbl')}" labelPlacement="center" width="460" y="75" x="87" visible="false"/>

<mx:Label id="presentationNamesLb" text="{ResourceUtil.getInstance().getString('bbb.fileupload.presentationNamesLbl')}" x="50" y="40"/>
<mx:ComboBox id="presentationNamesCombobox" width="365" x="50" y="66" dataProvider="{presentationNamesAC}"/>
Expand Down

0 comments on commit c23b3be

Please sign in to comment.