app/views/opportunities/show.js.haml in fat_free_crm-0.13.2 vs app/views/opportunities/show.js.haml in fat_free_crm-0.13.3
- old
+ new
@@ -1,5 +1,5 @@
- entity_name = controller.controller_name.singularize.underscore #account
- @entity = instance_variable_get("@#{entity_name}")
-jQuery('#main').html('#{ j (render :template => "#{entity_name.pluralize}/show.html", entity_name => @entity) }');
+$('#main').html('#{ j (render :template => "#{entity_name.pluralize}/show.html", entity_name => @entity) }');
= raw generate_js_for_popups(@entity, :tasks, :contacts)