9 lines
291 B
CoffeeScript
9 lines
291 B
CoffeeScript
Locomotive.Views.ContentEntries ||= {}
|
|
|
|
class Locomotive.Views.ContentEntries.EditView extends Locomotive.Views.ContentEntries.FormView
|
|
|
|
save: (event) ->
|
|
@save_in_ajax event,
|
|
on_success: (response, xhr) =>
|
|
@model.update_attributes(response)
|
|
@refresh_file_fields() |