Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created November 14, 2011 22:45
Show Gist options
  • Save dagda1/1365460 to your computer and use it in GitHub Desktop.
Save dagda1/1365460 to your computer and use it in GitHub Desktop.
rbu.coffee
class ReportBusinessUnitView extends MIBaseView
initialize: (options) ->
@vent = options.vent
@template = _.template($('#businessunit_template').html())
events:
"click .individualBu": "showBusinessUnitDetail"
showBusinessUnitDetail: (e) =>
e.preventDefault()
self = @
@vent.trigger('management:showbusinessunitdeail', @model)
render: =>
$(@el).html(@template(@model.toJSON()))
@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment