2011-12-22 22:28:12 +00:00
|
|
|
Locomotive.Views.Contents ||= {}
|
|
|
|
|
2011-12-22 23:45:32 +00:00
|
|
|
class Locomotive.Views.ContentEntries.NewView extends Locomotive.Views.ContentEntries.FormView
|
2011-12-22 22:28:12 +00:00
|
|
|
|
|
|
|
save: (event) ->
|
|
|
|
@save_in_ajax event,
|
|
|
|
on_success: (response, xhr) ->
|
|
|
|
window.location.href = xhr.getResponseHeader('location')
|