Merge branch 'sharednotes-timer' of github.com:pedrobmarin/bigbluebutton into mconf

This commit is contained in:
Felipe Cecagno 2016-11-14 13:19:08 -02:00
commit c831a0a8e7

View File

@ -105,6 +105,12 @@
BindingUtils.bindSetter(updateRoleDependentProperties, UsersUtil.getMyself(), "role"); BindingUtils.bindSetter(updateRoleDependentProperties, UsersUtil.getMyself(), "role");
updateTitle(); updateTitle();
if (noteId == "MAIN_WINDOW") {
this.enabled = false;
getDocumentTimer.addEventListener(TimerEvent.TIMER, checkCurrentDocument);
getDocumentTimer.start();
}
} }
private function gotCurrentDocument():void { private function gotCurrentDocument():void {
@ -137,9 +143,6 @@
private function updateRoleDependentProperties(role:String):void { private function updateRoleDependentProperties(role:String):void {
if(noteId == "MAIN_WINDOW"){ if(noteId == "MAIN_WINDOW"){
btnNew.visible = btnNew.includeInLayout = options.enableMultipleNotes && role == Role.MODERATOR; btnNew.visible = btnNew.includeInLayout = options.enableMultipleNotes && role == Role.MODERATOR;
this.enabled = false;
getDocumentTimer.addEventListener(TimerEvent.TIMER, checkCurrentDocument);
getDocumentTimer.start();
} else { } else {
showCloseButton = role == Role.MODERATOR; showCloseButton = role == Role.MODERATOR;
} }