Sha256: 48ef6ee34a4c2452865b7b9c3cc9951098f462a6743d259686bd8abee2b9e2c8

Contents?: true

Size: 832 Bytes

Versions: 28

Compression:

Stored size: 832 Bytes

Contents

<% column_span_id ||= element_cell_id(:id => @record.id.to_s, :action => 'update_column', :name => params[:column])%>
<% unless controller.send :successful?%>
  alert('<%= escape_javascript(@record.errors.full_messages.join("\n"))%>');
  <% @record.reload%>
<% end%>
<% column = active_scaffold_config.columns[params[:column]]%>
<% if column.inplace_edit%>
  ActiveScaffold.replace_html('<%=column_span_id%>','<%=escape_javascript(format_inplace_edit_column(@record, column))%>');
<% else%>
  <% formatted_value = get_column_value(@record, column)%>
  ActiveScaffold.replace_html('<%=column_span_id%>','<%=escape_javascript(formatted_value)%>');
<% end%>
<% if column.calculation?%>
 ActiveScaffold.replace_html('<%=active_scaffold_calculations_id(column)%>', '<%=escape_javascript(render_column_calculation(column))%>');
<% end%>

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
active_scaffold_vho-4.0.0 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.14 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.13 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.12 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.11 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.10 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.9 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.8 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.7 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.6 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.5 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.4 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.3 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.2 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.1 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.2.0 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.1.8 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.1.6 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.1.5 frontends/default/views/update_column.js.erb
active_scaffold_vho-3.1.4 frontends/default/views/update_column.js.erb