diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index a1ee5a3eb..a450d3627 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -1,4 +1,11 @@ class App.TicketZoom extends App.Controller + events: + 'click .sidebar-tabs': 'toggleSidebar' + 'click .close-sidebar': 'toggleSidebar' + + toggleSidebar: -> + @el.find('.ticket-zoom').toggleClass('state--sidebar-hidden') + constructor: (params) -> super