Sha256: 8c65478a32136f6a388a3affacd913be08c83089548b4430d75d64665a254c6f
Contents?: true
Size: 501 Bytes
Versions: 19
Compression:
Stored size: 501 Bytes
Contents
- entity_name = controller.controller_name.singularize.underscore - @entity = instance_variable_get("@#{entity_name}") - id = dom_id(@entity) $('##{id}').replaceWith('#{ j render(:partial => entity_name, :collection => [ @entity ]) }'); $('##{id}').effect("highlight", { duration:1500 }); - if called_from_index_page? = refresh_sidebar(:index, :filters) - elsif called_from_landing_page?("campaigns") = refresh_sidebar_for(:campaigns, :show, :summary) - else = refresh_sidebar(:show, :summary)
Version data entries
19 entries across 19 versions & 2 rubygems