Sha256: a8642213d957bfe97c3efcd71b5a6a8e93b8670226b229eb509b122592fa3cb7

Contents?: true

Size: 963 Bytes

Versions: 80

Compression:

Stored size: 963 Bytes

Contents

<%# nested_id, allows us to remove a nested scaffold programmatically %>
<tr class="inline-adapter" id="<%= element_row_id :action => :nested %>">
  <td class="inline-adapter-cell">
<% if successful? %>
    <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{nested? ? nested.name : id_from_controller(params[:controller])}-view" %> view">
      <%= link_to(as_(:close), '', :class => 'inline-adapter-close as_cancel', :remote => true, :title => as_(:close)) -%>
      <%= payload -%>
    </div>
<% end %>
    <%= javascript_tag("setTimeout(function() { var action_link = ActiveScaffold.ActionLink.get('#{element_row_id(:action => :nested)}'); if (action_link) { action_link.update_flash_messages('#{escape_javascript(render(:partial => 'messages').strip)}');#{' action_link.close(); ActiveScaffold.scroll_to(action_link.scaffold(), ActiveScaffold.config.scroll_on_close == "checkInViewport");' unless successful?} } }, 10);") %>
  </td>
</tr>

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
active_scaffold-3.7.10 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.7.8 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.7.7 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.7.6 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.7.5 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.7.2 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.7.1 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.7.0 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.20 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.19 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.17 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.15 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.14 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.13 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.12 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.11.1 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.11 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.10 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.9 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb
active_scaffold-3.6.8 app/views/active_scaffold_overrides/_list_inline_adapter.html.erb