mirror of
https://github.com/fergalmoran/dss.git
synced 2026-03-31 01:45:03 +00:00
15 lines
483 B
CoffeeScript
15 lines
483 B
CoffeeScript
define ['marionette', 'underscore', 'vent', 'text!/tpl/MixTabHeaderView'],
|
|
(Marionette, _, vent, Template) ->
|
|
|
|
class MixTabHeaderView extends Marionette.ItemView
|
|
template: _.template(Template)
|
|
|
|
initialize: (options)->
|
|
@options = options
|
|
@listenTo(vent, "mix:showlist", @tabChanged)
|
|
|
|
tabChanged: (options) ->
|
|
$('#mix-tab li[id=li-' + options.order_by + ']', @el).addClass('active')
|
|
true
|
|
|
|
MixTabHeaderView |