parent
0b0de7f412
commit
c918be869d
@ -0,0 +1,27 @@ |
||||
@menu = new class |
||||
init: -> |
||||
@container = $("#rocket-chat") |
||||
console.log 'init' |
||||
|
||||
isOpen: -> |
||||
return @container?.hasClass("menu-opened") is true |
||||
|
||||
open: -> |
||||
if not @isOpen() |
||||
@container?.removeClass("menu-closed").addClass("menu-opened") |
||||
if Meteor.isCordova |
||||
StatusBar.hide() |
||||
|
||||
close: -> |
||||
if @isOpen() |
||||
@container?.removeClass("menu-opened").addClass("menu-closed") |
||||
if Meteor.isCordova |
||||
Meteor.setTimeout -> |
||||
StatusBar.show() |
||||
, 300 |
||||
|
||||
toggle: -> |
||||
if @isOpen() |
||||
@close() |
||||
else |
||||
@open() |
@ -1,3 +0,0 @@ |
||||
Meteor.startup -> |
||||
if Meteor.isCordova |
||||
StatusBar.hide() |
Loading…
Reference in new issue