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 {
for (var i:int = 0; i < _presentations.length; i++) {
var pres: Presentation = _presentations.getItemAt(i) as Presentation;
if (pres.current) return pres.id;
if (pres.current) return pres.name;
}
return null;

View File

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