app/views/accounts/update.js.haml in fat_free_crm-0.13.2 vs app/views/accounts/update.js.haml in fat_free_crm-0.13.3
- old
+ new
@@ -6,12 +6,14 @@
- if called_from_landing_page?
crm.flip_form('edit_#{entity_name}');
crm.set_title('edit_#{entity_name}', '#{h @entity.name}');
= refresh_sidebar(:show, :summary)
- else
- jQuery('##{id}').replaceWith('#{ j render(:partial => entity_name, :collection => [ @entity ]) }');
- jQuery('##{id}').effect("highlight", { duration:1500 });
+ $('##{id}').replaceWith('#{ j render(:partial => entity_name, :collection => [ @entity ]) }');
+ $('##{id}').effect("highlight", { duration:1500 });
= refresh_sidebar(:index, :filters)
- else
- jQuery('##{id}').html('#{ j render(:partial => "edit") }');
- jQuery('##{id}').effect("shake", { duration:250, distance: 6 });
- jQuery('##{dom_id(@entity, :edit)} input[type!=hidden]').first().focus();
+ $('##{id}').html('#{ j render(:partial => "edit") }');
+ $('##{id}').effect("shake", { duration:250, distance: 6 });
+ $('##{dom_id(@entity, :edit)} input[type!=hidden]').first().focus();
+
+= hook(:entity_update, self, {entity: @entity}) {}
\ No newline at end of file