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

9 lines
282 B
CoffeeScript
Raw Normal View History

Locomotive.Views.ContentEntries ||= {}
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')