Sha256: d5e8d2aaccd5eeb7e656a0c482e8a3a794759640391e15d71525c08eebef18a2

Contents?: true

Size: 891 Bytes

Versions: 8

Compression:

Stored size: 891 Bytes

Contents

- id = "create_field_field_group_#{@field.field_group_id}";
- custom_field_id = "custom_field_#{@field.id}";
- container_id = "fields_field_group_#{@field.field_group_id}";
- create_field_id = "create_field_field_group_#{@field.field_group_id}";
- empty_field_id = "empty_opportunity_field_group_#{@field.field_group_id}"

- if @field.valid?
  $("##{id}_arrow").html(crm.COLLAPSED)
  $('##{container_id}').append('#{ j (render partial: "field", collection: [@field]) }')
  $('##{custom_field_id}').effect("highlight", { duration:1500 });
  $("##{create_field_id}").hide();
  $("##{empty_field_id}").hide();
  $('##{container_id}').sortable('reset');
- else
  $('##{id}').html('#{ j render(partial: "admin/fields/form", locals: {field_group_id: @field.field_group_id}) }')
  $('##{id}').effect("shake", { duration:250, distance: 6 });
  $('##{id}').find('input[type="text"]').first().focus()

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fat_free_crm-0.19.2 app/views/admin/fields/create.js.haml
fat_free_crm-0.19.0 app/views/admin/fields/create.js.haml
fat_free_crm-0.18.2 app/views/admin/fields/create.js.haml
fat_free_crm-0.17.3 app/views/admin/fields/create.js.haml
fat_free_crm-0.18.1 app/views/admin/fields/create.js.haml
fat_free_crm-0.18.0 app/views/admin/fields/create.js.haml
fat_free_crm-0.17.2 app/views/admin/fields/create.js.haml
fat_free_crm-0.17.1 app/views/admin/fields/create.js.haml