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