add toggle sidebar functionality

This commit is contained in:
Felix Niklas 2014-08-07 23:51:58 +02:00
parent c97bea2cb2
commit b0614d03f2

View file

@ -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