Sha256: eea8e84408636cd8716dc7c3d111c203549b05acb4c6807d38a67c2a29ac6d0b

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

form_selector = "#{element_form_id(:action => :batch_update)}"

if controller.send :batch_successful?
  page.call 'ActiveScaffold.replace_html', active_scaffold_content_id, render(:partial => 'list', :layout => false)
  page << "ActiveScaffold.find_action_link('#{form_selector}').close();"
else
  page << "ActiveScaffold.find_action_link('#{form_selector}').update_flash_messages('#{escape_javascript(render(:partial => 'messages').strip)}');"
  page.call 'ActiveScaffold.replace', form_selector, render(:partial => 'batch_update_form', :locals => {:xhr => true})
  page.call 'ActiveScaffold.scroll_to', form_selector
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_scaffold_batch_vho-3.0.6 frontends/default/views/on_batch_update.js.rjs
active_scaffold_batch_vho-3.0.5 frontends/default/views/on_batch_update.js.rjs
active_scaffold_batch_vho-3.0.4 frontends/default/views/on_batch_update.js.rjs
active_scaffold_batch_vho-3.0.3 frontends/default/views/on_batch_update.js.rjs
active_scaffold_batch_vho-3.0.1 frontends/default/views/on_batch_update.js.rjs
active_scaffold_batch_vho-3.0.0 frontends/default/views/on_batch_update.js.rjs