Sha256: d1ec69d417905a1e70a314d9d470e0df59cb08fa3bfedc98e26bae5f3c29902f

Contents?: true

Size: 688 Bytes

Versions: 17

Compression:

Stored size: 688 Bytes

Contents

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
active_scaffold_batch-3.5.2 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.5.1 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.5.0 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.4.5 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.4.4 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.4.3 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.4.2 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.4.1 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.4.0 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.3.4 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.3.3 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.3.2 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.3.1 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.3.0 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.2.2 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.2.1 app/views/active_scaffold_overrides/on_batch_update.js.erb
active_scaffold_batch-3.2.0 app/views/active_scaffold_overrides/on_batch_update.js.erb