Sha256: 9717480371873ad978c4dbf151def3daa2743c920158a6eef8fcf8ffd5437c71
Contents?: true
Size: 526 Bytes
Versions: 30
Compression:
Stored size: 526 Bytes
Contents
Locomotive.Views.ContentTypes ||= {} class Locomotive.Views.ContentTypes.EditView extends Locomotive.Views.ContentTypes.FormView save: (event) -> @save_in_ajax event, on_success: (response, xhr) => @model._normalize() _.each response.entries_custom_fields, (data) => custom_field = @model.get('entries_custom_fields').detect (entry) => entry.get('name') == data.name if custom_field.isNew() # assign an id for each new custom field custom_field.set id: data._id, _id: data._id
Version data entries
30 entries across 30 versions & 1 rubygems