Sha256: 4c5893a5fc700f0841a7549f9cfe7e7bd79dd429e503fb77958b13ae9beaf35d

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

column_span_id = element_cell_id(:id => @record.id.to_s, :action => 'update_column', :name => params[:column])
unless controller.send :successful?
  page.alert(@record.errors.as_full_messages(active_scaffold_config).join("\n"))
  @record.reload
end
column = active_scaffold_config.columns[params[:column]]
if column.inplace_edit
  page.replace_html(column_span_id,format_inplace_edit_column(@record, column))
else
  formatted_value = get_column_value(@record, column)
  page.replace_html(column_span_id,  formatted_value)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
antfarm-0.3.0 rails/vendor/plugins/active_scaffold/frontends/default/views/update_column.rjs
antfarm-0.4.0 rails/vendor/plugins/active_scaffold/frontends/default/views/update_column.rjs