Fixed the issue with sticky tooltips bound to the header buttons (made an old tooltip disappear on clicking a button).

This commit is contained in:
Maxim Khlobystov 2014-11-01 16:11:06 -07:00
parent 04ccd594ca
commit 3478d1de68

View File

@ -9,14 +9,19 @@ Template.footer.helpers
Template.header.events Template.header.events
"click .usersListIcon": (event) -> "click .usersListIcon": (event) ->
$(".tooltip").hide()
toggleUsersList() toggleUsersList()
"click .chatBarIcon": (event) -> "click .chatBarIcon": (event) ->
$(".tooltip").hide()
toggleChatbar() toggleChatbar()
"click .videoFeedIcon": (event) -> "click .videoFeedIcon": (event) ->
toggleCam @ $(".tooltip").hide()
toggleCam @
"click .audioFeedIcon": (event) -> "click .audioFeedIcon": (event) ->
$(".tooltip").hide()
toggleVoiceCall @ toggleVoiceCall @
"click .muteIcon": (event) -> "click .muteIcon": (event) ->
$(".tooltip").hide()
toggleMic @ toggleMic @
"click .signOutIcon": (event) -> "click .signOutIcon": (event) ->
response = confirm('Are you sure you want to exit?') response = confirm('Are you sure you want to exit?')
@ -24,15 +29,19 @@ Template.header.events
userLogout getInSession("meetingId"), getInSession("userId"), true userLogout getInSession("meetingId"), getInSession("userId"), true
"click .hideNavbarIcon": (event) -> "click .hideNavbarIcon": (event) ->
$(".tooltip").hide()
toggleNavbar() toggleNavbar()
# "click .settingsIcon": (event) -> # "click .settingsIcon": (event) ->
# alert "settings" # alert "settings"
"click .raiseHand": (event) -> "click .raiseHand": (event) ->
console.log "navbar raise own hand from client" console.log "navbar raise own hand from client"
$(".tooltip").hide()
Meteor.call('userRaiseHand', getInSession("meetingId"), getInSession("DBID"), getInSession("userId"), getInSession("DBID") ) Meteor.call('userRaiseHand', getInSession("meetingId"), getInSession("DBID"), getInSession("userId"), getInSession("DBID") )
"click .lowerHand": (event) -> "click .lowerHand": (event) ->
$(".tooltip").hide()
Meteor.call('userLowerHand', getInSession("meetingId"), getInSession("DBID"), getInSession("userId"), getInSession("DBID") ) Meteor.call('userLowerHand', getInSession("meetingId"), getInSession("DBID"), getInSession("userId"), getInSession("DBID") )
"click .whiteboardIcon": (event) -> "click .whiteboardIcon": (event) ->
$(".tooltip").hide()
toggleWhiteBoard() toggleWhiteBoard()
"mouseover #navbarMinimizedButton": (event) -> "mouseover #navbarMinimizedButton": (event) ->
$("#navbarMinimizedButton").removeClass("navbarMinimizedButtonSmall") $("#navbarMinimizedButton").removeClass("navbarMinimizedButtonSmall")