engine/app/assets/javascripts/locomotive/views/contents/_form.js.coffee

22 lines
352 B
CoffeeScript
Raw Normal View History

#= require ../shared/form_view
Locomotive.Views.Contents ||= {}
class Locomotive.Views.Contents.FormView extends Locomotive.Views.Shared.FormView
el: '#content'
events:
'submit': 'save'
initialize: ->
@model = new Locomotive.Models.Content(@options.content)
Backbone.ModelBinding.bind @
render: ->
super()
return @