Sha256: 151036572556738f5df6d6c952f6924232240f0b0076387b14764ebe68f0dce0

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 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 %>');
  var $el = $('#<%= dom_id(resource, 'list') %>');
  $(document).trigger('admin:list_init');
  if (!$el[0].className) $el.addClass('success');
  $el.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.8.3 app/views/admin/base/update.js.erb
ab_admin-0.8.2 app/views/admin/base/update.js.erb
ab_admin-0.8.1 app/views/admin/base/update.js.erb
ab_admin-0.8.0 app/views/admin/base/update.js.erb