Sha256: c1d026f6c017ac141c79322c0b605fe706411c8a4a0250741e3235834692a668

Contents?: true

Size: 497 Bytes

Versions: 5

Compression:

Stored size: 497 Bytes

Contents

- id = dom_id(@field)
- container_id = "#{@field.klass_name.downcase}_field_groups"

- if @field.errors.empty?
  html = $.parseHTML('#{ j (render partial: "field", collection: [@field]) }');
  $('##{id}').replaceWith(html);
  $('##{id}').effect("highlight", { duration:1000 });
  $('##{container_id}').sortable('reset');
- else
  html = $.parseHTML('#{ j(render partial: "form") }');
  $('##{id}').find('.edit_field').replaceWith( html );
  $('##{id}').find('input[type="text"]').first().focus();

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/admin/fields/update.js.haml
fat_free_crm-0.22.0 app/views/admin/fields/update.js.haml
fat_free_crm-0.21.0 app/views/admin/fields/update.js.haml
fat_free_crm-0.20.1 app/views/admin/fields/update.js.haml
fat_free_crm-0.20.0 app/views/admin/fields/update.js.haml