engine/app/assets/javascripts/locomotive/views/content_entries/new.js.coffee

9 lines
276 B
CoffeeScript

Locomotive.Views.Contents ||= {}
class Locomotive.Views.ContentEntries.NewView extends Locomotive.Views.ContentEntries.FormView
save: (event) ->
@save_in_ajax event,
on_success: (response, xhr) ->
window.location.href = xhr.getResponseHeader('location')