engine/app/assets/javascripts/locomotive/views/content_entries/edit.js.coffee

9 lines
291 B
CoffeeScript
Raw Normal View History

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()