Sha256: 8c65478a32136f6a388a3affacd913be08c83089548b4430d75d64665a254c6f

Contents?: true

Size: 501 Bytes

Versions: 19

Compression:

Stored size: 501 Bytes

Contents

- entity_name = controller.controller_name.singularize.underscore
- @entity = instance_variable_get("@#{entity_name}")
- id = dom_id(@entity)

$('##{id}').replaceWith('#{ j render(:partial => entity_name, :collection => [ @entity ]) }');
$('##{id}').effect("highlight", { duration:1500 });
- if called_from_index_page?
  = refresh_sidebar(:index, :filters)
- elsif called_from_landing_page?("campaigns")
  = refresh_sidebar_for(:campaigns, :show, :summary)
- else
  = refresh_sidebar(:show, :summary)

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/leads/reject.js.haml
fat_free_crm-0.15.2 app/views/leads/reject.js.haml
fat_free_crm-0.16.4 app/views/leads/reject.js.haml
fat_free_crm-0.14.1 app/views/leads/reject.js.haml
fat_free_crm-0.15.1 app/views/leads/reject.js.haml
fat_free_crm-0.16.3 app/views/leads/reject.js.haml
fat_free_crm-0.16.2 app/views/leads/reject.js.haml
fat_free_crm-0.16.1 app/views/leads/reject.js.haml
fat_free_crm-0.16.0 app/views/leads/reject.js.haml
fat_free_crm-0.15.0 app/views/leads/reject.js.haml
fat_free_crm-0.15.0.beta.2 app/views/leads/reject.js.haml
fat_free_crm-0.15.0.beta app/views/leads/reject.js.haml
fat_free_crm-0.14.0 app/views/leads/reject.js.haml
reduced_fat_crm-0.15.0.beta app/views/leads/reject.js.haml
reduced_fat_crm-0.14.0 app/views/leads/reject.js.haml
fat_free_crm-0.13.6 app/views/leads/reject.js.haml
fat_free_crm-0.13.5 app/views/leads/reject.js.haml
fat_free_crm-0.13.4 app/views/leads/reject.js.haml
fat_free_crm-0.13.3 app/views/leads/reject.js.haml