Getting the number of shared notes from layout
This commit is contained in:
parent
128c3b19bd
commit
7cdfa399ea
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user