Anton Shestakov <av6@dwimlabs.net>, Tue, 10 Jul 2018 15:43:11 +0800
.hgignore: add libs/
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: @)