Sha256: 334f6fe336499376583a898cb130e8258dc0c2cf6eb589af49dcf833b01d0795

Contents?: true

Size: 1.13 KB

Versions: 49

Compression:

Stored size: 1.13 KB

Contents

<%if controller.send :successful?%>
  ActiveScaffold.replace_html('<%=active_scaffold_messages_id%>','<%=escape_javascript(render(:partial => 'messages'))%>');
  <%if @record%>
  ActiveScaffold.update_row('<%=element_row_id(:action => :list, :id => @record.id)%>','<%=escape_javascript(render(:partial => 'list_record', :locals => {:record => @record}))%>');
  <%end%>
  <% if active_scaffold_config.list.columns.any? {|c| c.calculation?}%>
      ActiveScaffold.replace('<%=active_scaffold_calculations_id%>', '<%=escape_javascript(render(:partial => 'list_calculations'))%>');
    <% end %>
<%else%>
  <%flash[:error] = active_scaffold_error_messages_for(@record, :object_name => "#{@record.class.model_name.human.downcase}#{@record.new_record? ? '' : ": #{@record.to_label}"}", :header_message => '', :message => "#{@record.class.model_name.human.downcase}#{@record.new_record? ? '' : ": #{@record.to_label}"}", :container_tag => nil, :list_type => :br)%>
  ActiveScaffold.replace_html('<%=active_scaffold_messages_id%>','<%=escape_javascript(render(:partial => 'messages'))%>');
  ActiveScaffold.scroll_to('<%=active_scaffold_messages_id%>');
<%end%>

Version data entries

49 entries across 49 versions & 2 rubygems

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