The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/lib/menu.coffee

20 lines
373 B

@menu = new class
init: ->
@container = $("#rocket-chat")
isOpen: ->
return @container?.hasClass("menu-opened") is true
open: ->
if not @isOpen()
@container?.removeClass("menu-closed").addClass("menu-opened")
close: ->
if @isOpen()
@container?.removeClass("menu-opened").addClass("menu-closed")
toggle: ->
if @isOpen()
@close()
else
@open()