2012-01-04 01:07:53 +00:00
|
|
|
Locomotive.Views.ContentEntries ||= {}
|
2011-12-22 22:28:12 +00:00
|
|
|
|
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')
|