Sha256: 1eb66dc47d44e6f3514f24eea348f0e4da448ec2e1af3f13bf413da74c451d3b

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

- id = dom_id(@tag)

- if @tag.errors.empty?
  $('##{id}').replaceWith('#{ j render(partial: "tag", collection: [ @tag ]) }');
  $('##{id}').effect('highlight', { duration: 1000 });
- else
  $('##{id}').html('#{ j render(partial: "edit") }');
  $('#tag_tagname').focus();

Version data entries

5 entries across 5 versions & 1 rubygems

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