app/views/leads/create.js.haml in fat_free_crm-0.19.2 vs app/views/leads/create.js.haml in fat_free_crm-0.20.0

- old
+ new

@@ -7,15 +7,14 @@ $('##{create_id}_title').html('#{ j t(entity_name.pluralize) }'); $('##{create_id}').slideUp(250); $('##{entity_name.pluralize}').prepend('#{ j render(partial: entity_name, collection: [ @entity ]) }'); $('##{dom_id(@entity)}').effect("highlight", { duration:1500 }); - if called_from_index_page? - = refresh_sidebar(:index, :filters) + = refresh_sidebar(:index) $('#paginate').html('#{ j render(partial: "shared/paginate_with_per_page") }'); - elsif called_from_landing_page?("campaigns") - @campaign.reload - = refresh_sidebar_for(:campaigns, :show, :summary) + = refresh_sidebar_for(:campaigns, :show) crm.flick('empty', 'remove'); - else $('##{create_id}').html('#{ j render(partial: "new") }'); - $('##{create_id}').effect("shake", { duration:250, distance: 6 }); $('#new_#{entity_name} input[type!=hidden]').first().focus();