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