Sha256: 6456f47c0069fc3167eedf545dcb2463c3c263f8fb7d71e2411664de138eda9e

Contents?: true

Size: 980 Bytes

Versions: 18

Compression:

Stored size: 980 Bytes

Contents

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

<% if controller.send :batch_successful? %>
  <% called_by_controller = params.delete(:batch_create_by) %>
  <% if called_by_controller.nil? %>
    ActiveScaffold.replace_html('<%= active_scaffold_content_id %>','<%= escape_javascript(render(:partial => 'list', :layout => false)) %>');
  <% else %>
    ActiveScaffold.mark_records('<%= "#{controller_id(called_by_controller)}-tbody" %>', <%= {:checked => false, :include_checkboxes => true}.to_json.html_safe %>);
  <% end %>
  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_create_form', :locals => {:xhr => true})) %>');
  ActiveScaffold.scroll_to('<%= form_selector %>', true);
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

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