Getting the number of shared notes from layout

This commit is contained in:
Pedro Beschorner Marin 2014-11-28 14:26:44 -02:00 committed by Felipe Cecagno
parent 128c3b19bd
commit 7cdfa399ea
2 changed files with 3 additions and 4 deletions

View File

@ -276,8 +276,7 @@ package org.bigbluebutton.modules.layout.managers
private function checkSharedNotes(layout:LayoutDefinition):void {
var e:SharedNotesEvent = new SharedNotesEvent(SharedNotesEvent.CREATE_ADDITIONAL_NOTES_SET_EVENT);
//e.additionalNotesSetSize = layout.getNumberOfSharedNotes();
e.additionalNotesSetSize = 1;
e.additionalNotesSetSize = layout.getNumberOfSharedNotes();
_globalDispatcher.dispatchEvent(e);
}

View File

@ -357,8 +357,8 @@ package org.bigbluebutton.modules.layout.model {
public function getNumberOfSharedNotes():Number {
var sharedNotesCounter:int = 0;
for each (var window:MDIWindow in _layoutsPerRole[Role.VIEWER]) {
if (window.name.indexOf("AdditionalSharedNotes")) {
for each (var window:WindowLayout in _layoutsPerRole[Role.VIEWER]) {
if (window.name.indexOf("AdditionalSharedNotesWindow") != -1) {
sharedNotesCounter++;
}
}