ask the user to confirm before logging out

This commit is contained in:
Anton Georgiev 2014-09-23 19:02:31 +00:00
parent 7d9f25fd9b
commit a9697d96cc

View File

@ -22,7 +22,10 @@ Template.header.events
"click .muteIcon": (event) ->
toggleMic @
"click .signOutIcon": (event) ->
userLogout getInSession("meetingId"), getInSession("userId"), true
response = confirm('Are you sure you want to exit?')
if response
userLogout getInSession("meetingId"), getInSession("userId"), true
"click .hideNavbarIcon": (event) ->
toggleNavbar()
# "click .settingsIcon": (event) ->