Sha256: 2c43d709e329f83c61e8e3ce12dbcbdd1d4287c8c80ce0107a497d0598b2d3a7

Contents?: true

Size: 894 Bytes

Versions: 2

Compression:

Stored size: 894 Bytes

Contents

if controller.send(:successful?)
  page << "$('#{action_link_id((respond_to?(:nested_habtm?) and nested_habtm? and active_scaffold_config.nested.shallow_delete) ? 'destroy_existing' : 'delete', params[:id])}').action_link.close_previous_adapter();"
  page.remove element_row_id(:action => 'list', :id => params[:id])
  page << "ActiveScaffold.reload_if_empty('#{active_scaffold_tbody_id}','#{url_for(params_for(:action => :index, :id => nil, :page => [active_scaffold_config.list.user.page.to_i - 1, 1].max, :escape => false))}');"
  page << "ActiveScaffold.stripe('#{active_scaffold_tbody_id}');"
  page << "ActiveScaffold.decrement_record_count('#{active_scaffold_id}');"
  page.replace active_scaffold_calculations_id, :partial => 'list_calculations' if active_scaffold_config.list.columns.any? {|c| c.calculation?}
end

page.replace_html active_scaffold_messages_id, :partial => 'messages'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 vendor/plugins/active_scaffold/frontends/default/views/destroy.js.rjs
brisk-bills-0.8.1 vendor/plugins/active_scaffold/frontends/default/views/destroy.js.rjs