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