Presentation name is displayed after being lost.

This commit is contained in:
Ghazi Triki 2014-08-13 18:47:57 +01:00
parent b1c22ad8fd
commit 2aa1ddb600
2 changed files with 20 additions and 19 deletions

View File

@ -79,7 +79,7 @@ package org.bigbluebutton.modules.present.model
public function getCurrentPresentationName():String { public function getCurrentPresentationName():String {
for (var i:int = 0; i < _presentations.length; i++) { for (var i:int = 0; i < _presentations.length; i++) {
var pres: Presentation = _presentations.getItemAt(i) as Presentation; var pres: Presentation = _presentations.getItemAt(i) as Presentation;
if (pres.current) return pres.id; if (pres.current) return pres.name;
} }
return null; return null;

View File

@ -369,24 +369,25 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
} }
displaySlideNavigationControls(isPresenter); displaySlideNavigationControls(isPresenter);
} }
private function handlePresentationChangedEvent(e:PresentationChangedEvent) : void {
currentPresentation = PresentationModel.getInstance().getCurrentPresentationName();
private function handlePresentationChangedEvent(e:PresentationChangedEvent):void { slideView.setSlides();
var newPresName:String = PresentationModel.getInstance().getCurrentPresentationName(); slideView.visible = true;
var page : Page = PresentationModel.getInstance().getCurrentPage();
if (page != null) {
displaySlideNumber(page.num);
}
slideView.setSlides(); if (UsersUtil.amIPresenter()) {
slideView.visible = true; displaySlideNavigationControls(true);
var page:Page = PresentationModel.getInstance().getCurrentPage(); }
if (page != null) { else {
displaySlideNumber(page.num); displaySlideNavigationControls(false)
} }
onResetZoom();
}
if (UsersUtil.amIPresenter()) {
displaySlideNavigationControls(true);
} else {
displaySlideNavigationControls(false)
}
onResetZoom();
}
private function displaySlideNavigationControls(show:Boolean):void { private function displaySlideNavigationControls(show:Boolean):void {
backButton.visible = show; backButton.visible = show;