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,9 +369,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
} }
displaySlideNavigationControls(isPresenter); displaySlideNavigationControls(isPresenter);
} }
private function handlePresentationChangedEvent(e:PresentationChangedEvent) : void { private function handlePresentationChangedEvent(e:PresentationChangedEvent) : void {
var newPresName:String = PresentationModel.getInstance().getCurrentPresentationName(); currentPresentation = PresentationModel.getInstance().getCurrentPresentationName();
slideView.setSlides(); slideView.setSlides();
slideView.visible = true; slideView.visible = true;
@ -382,12 +381,14 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
if (UsersUtil.amIPresenter()) { if (UsersUtil.amIPresenter()) {
displaySlideNavigationControls(true); displaySlideNavigationControls(true);
} else { }
else {
displaySlideNavigationControls(false) displaySlideNavigationControls(false)
} }
onResetZoom(); onResetZoom();
} }
private function displaySlideNavigationControls(show:Boolean):void { private function displaySlideNavigationControls(show:Boolean):void {
backButton.visible = show; backButton.visible = show;
forwardButton.visible = show; forwardButton.visible = show;