Sha256: 328d5de31680b57a28c1c7f935f70054427fea6d100d967d905e094b7e7b67c7

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 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.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
page.replace_html(active_scaffold_calculations_id(column), render_column_calculation(column)) if column.calculation?

Version data entries

2 entries across 2 versions & 1 rubygems

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