2011-11-14 09:13:58 +00:00
|
|
|
Locomotive.Views.Pages ||= {}
|
|
|
|
|
2011-11-16 00:39:16 +00:00
|
|
|
class Locomotive.Views.Pages.NewView extends Locomotive.Views.Pages.FormView
|
2011-11-25 01:04:42 +00:00
|
|
|
|
|
|
|
save: (event) ->
|
2011-12-02 17:20:59 +00:00
|
|
|
@save_in_ajax event,
|
|
|
|
on_success: (response, xhr) ->
|
|
|
|
window.location.href = xhr.getResponseHeader('location')
|