Sha256: 9111777fbc7edb3cdccd913715eb7cb08bd13e47e079122956efa2d763f3c9f7

Contents?: true

Size: 1017 Bytes

Versions: 19

Compression:

Stored size: 1017 Bytes

Contents

if controller.send :successful?
  page.call 'ActiveScaffold.replace_html', active_scaffold_messages_id, render(:partial => 'messages')
  page.call 'ActiveScaffold.update_row', element_row_id(:action => :list, :id => @record.id), render(:partial => 'list_record', :locals => {:record => @record}) if @record
  page.call 'ActiveScaffold.replace', active_scaffold_calculations_id, render(:partial => 'list_calculations') if active_scaffold_config.list.columns.any? {|c| c.calculation?}
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)
  page.call 'ActiveScaffold.replace_html', active_scaffold_messages_id, render(:partial => 'messages')
  page.call 'ActiveScaffold.scroll_to', active_scaffold_messages_id
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
active_scaffold_vho-3.0.31 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.30 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.29 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.28 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.27 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.26 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.25 frontends/default/views/on_action_update.js.rjs
active_scaffold-3.0.26 frontends/default/views/on_action_update.js.rjs
active_scaffold-3.0.25 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.24 frontends/default/views/on_action_update.js.rjs
active_scaffold_clarity-3.0.24.2 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.23 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.22 frontends/default/views/on_action_update.js.rjs
active_scaffold-3.0.24 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.21 frontends/default/views/on_action_update.js.rjs
active_scaffold-3.0.23 frontends/default/views/on_action_update.js.rjs
active_scaffold-3.0.22 frontends/default/views/on_action_update.js.rjs
active_scaffold-3.0.21 frontends/default/views/on_action_update.js.rjs
active_scaffold_vho-3.0.20 frontends/default/views/on_action_update.js.rjs