- update poll list when meeting is created

This commit is contained in:
Richard Alam 2013-07-08 17:27:54 +00:00
parent b514b9581c
commit 00f6ce906e

View File

@ -1,12 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" borderStyle="none" horizontalAlign="center"
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mate="http://mate.asfusion.com/"
borderStyle="none" horizontalAlign="center"
headerHeight="0" borderThicknessBottom="0" borderThicknessLeft="0"
borderThicknessRight="0" borderThicknessTop="0" creationComplete="onCreationComplete()" >
<mate:Listener type="{PollEvent.POLL_CREATED}" method="onPollCreateEvent" />
<mx:Script>
<![CDATA[
import com.asfusion.mate.events.Dispatcher;
import org.bigbluebutton.modules.polling.events.CreatePollWindowEvent;
import org.bigbluebutton.modules.polling.events.PollEvent;
import org.bigbluebutton.modules.polling.events.PollMainWindowEvent;
import org.bigbluebutton.modules.polling.model.PollingViewModel;
import org.bigbluebutton.util.i18n.ResourceUtil;
@ -20,6 +26,10 @@
_polls = viewModel.polls;
}
private function onPollCreateEvent(event:PollEvent):void {
_polls = viewModel.polls;
}
private function createPoll():void {
var dispatcher:Dispatcher = new Dispatcher();
dispatcher.dispatchEvent(new CreatePollWindowEvent(CreatePollWindowEvent.OPEN_WINDOW));