2011-12-19 13:15:11 +00:00
|
|
|
Locomotive.Views.ContentTypes ||= {}
|
|
|
|
|
|
|
|
class Locomotive.Views.ContentTypes.NewView extends Locomotive.Views.ContentTypes.FormView
|
|
|
|
|
|
|
|
save: (event) ->
|
|
|
|
@save_in_ajax event,
|
|
|
|
on_success: (response, xhr) ->
|
2011-12-22 15:45:42 +00:00
|
|
|
window.location.href = xhr.getResponseHeader('location')
|
|
|
|
|
|
|
|
enable_liquid_editing: ->
|
|
|
|
true # do nothing
|