Sha256: 87631859d535ce5ec563744c56b146a54145ad9f1e24ffd2279315e56c2d1b1d

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

<% unless params[:modal] %>
  <%
    form_wrap_id = dom_id(resource, 'list_edit')
    html = render('table', collection: [resource]).match(/<tbody>(.*)<\/tbody>/m)[1].html_safe
  %>
  $('#<%= form_wrap_id %>').remove();
  $('#<%= dom_id(resource, 'list') %>').replaceWith('<%= j html %>');
  $(document).trigger('admin:list_init');
  $('#<%= dom_id(resource, 'list') %>').addClass('success').scrollToEl();
<% end %>

window.ab_admin_last_updated = <%= raw resource.for_input_token.to_json %>;

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.7.0 app/views/admin/base/update.js.erb
ab_admin-0.6.1 app/views/admin/base/update.js.erb
ab_admin-0.6.0 app/views/admin/base/update.js.erb
ab_admin-0.5.0 app/views/admin/base/update.js.erb