28 lines
907 B
CoffeeScript
Executable File
28 lines
907 B
CoffeeScript
Executable File
# These settings can just be stored locally in session, created at start up
|
|
Meteor.startup ->
|
|
Session.set "display_usersList", true
|
|
Session.set "display_navbar", true
|
|
Session.set "display_chatbar", true
|
|
Session.set "display_whiteboard", false
|
|
Session.set "display_publicPane", true
|
|
|
|
Template.header.events
|
|
"click .usersListIcon": (event) ->
|
|
toggleUsersList()
|
|
"click .chatBarIcon": (event) ->
|
|
toggleChatbar()
|
|
"click .videoFeedIcon": (event) ->
|
|
toggleCam @
|
|
"click .audioFeedIcon": (event) ->
|
|
toggleMic @
|
|
"click .signOutIcon": (event) ->
|
|
#alert "signout"
|
|
Meteor.call("userLogout", Session.get("meetingId"), Session.get("userId"))
|
|
Session.set "display_navbar", false # needed to hide navbar when the layout template renders
|
|
Router.go('logout');
|
|
"click .hideNavbarIcon": (event) ->
|
|
toggleNavbar()
|
|
"click .settingsIcon": (event) ->
|
|
alert "settings"
|
|
|