From b0614d03f271df94552210a5df3231f15bde2c31 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Thu, 7 Aug 2014 23:51:58 +0200 Subject: [PATCH] add toggle sidebar functionality --- .../javascripts/app/controllers/ticket_zoom.js.coffee | 7 +++++++ 1 file changed, 7 insertions(+) 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