app/views/contacts/destroy.js.haml in fat_free_crm-0.13.2 vs app/views/contacts/destroy.js.haml in fat_free_crm-0.13.3

- old
+ new

@@ -1,9 +1,9 @@ - entity_name = controller.controller_name.singularize.underscore - @entity = instance_variable_get("@#{entity_name}") -jQuery('##{dom_id(@entity)}').css('background-color', '#ffe4e1').slideUp(250); +$('##{dom_id(@entity)}').css('background-color', '#ffe4e1').slideUp(250); - if called_from_index_page? = refresh_sidebar(:index, :filters) - jQuery('#paginate').html('#{ j render(:partial => "shared/paginate_with_per_page") }'); + $('#paginate').html('#{ j render(:partial => "shared/paginate_with_per_page") }'); - else - jQuery('#recently').replaceWith('#{ j render(:partial => "shared/recently") }'); + $('#recently').replaceWith('#{ j render(:partial => "shared/recently") }');