Anton Shestakov <av6@dwimlabs.net>, Mon, 30 May 2016 16:02:00 +0800
index: default message type is 'normal'
coffee/sidebar.coffee
Permissions: -rw-r--r--
class window.Tram.SidebarApp extends Backbone.View "background: #{ @colors[show] || @colors['default'] };" minified = not @model.get('sidebar/minified') @model.set('sidebar/minified', minified) @$el.parent().toggleClass('mini', minified) $btn = $(event.currentTarget) show = $btn.attr('data-show') status = $btn.text().trim() @model.trigger('action/show', show, status) @model.trigger('action/disconnect') @rivet = rivets.bind(@el, model: @model, view: this)