Sha256: 8d9d30206485b7a8cd733ad4651fcaa86ee849ff1da338f9da9223aa7174fc39

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 Bytes

Contents

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

$('##{dom_id(@entity)}').css('background-color', '#ffe4e1').slideUp(250);
- if called_from_index_page?
  = refresh_sidebar(:index)
  $('#paginate').replaceWith('#{ j render(partial: "shared/paginate_with_per_page") }');
- elsif called_from_landing_page?("campaigns")
  = refresh_sidebar_for(:campaigns, :show)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/leads/destroy.js.haml
fat_free_crm-0.22.0 app/views/leads/destroy.js.haml
fat_free_crm-0.21.0 app/views/leads/destroy.js.haml
fat_free_crm-0.20.1 app/views/leads/destroy.js.haml
fat_free_crm-0.20.0 app/views/leads/destroy.js.haml