Sha256: 46ec94fbc08ed55785864d4577736bbe52602fce2ca6417d2b534555ddbbb4b5

Contents?: true

Size: 431 Bytes

Versions: 11

Compression:

Stored size: 431 Bytes

Contents

<%
  el_id = dom_id(resource, 'list')
  form_wrap_id = dom_id(resource, 'list_edit')
  html = %[<tr id="#{form_wrap_id}" class="warning"><td>#{render('form')}</td></tr>].html_safe
%>
$('#<%= form_wrap_id %>').remove();
$('#<%= el_id %>').after('<%= j html %>');
$('#<%= form_wrap_id %> td').attr('colspan', $('#list tr:first th').length);
$('#<%= el_id %>').scrollToEl();
$('#<%= form_wrap_id %> form').trigger('admin:form_init');

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ab_admin-0.3.4 app/views/admin/base/edit.js.erb
ab_admin-0.3.3 app/views/admin/base/edit.js.erb
ab_admin-0.3.2 app/views/admin/base/edit.js.erb
ab_admin-0.3.1 app/views/admin/base/edit.js.erb
ab_admin-0.3.0 app/views/admin/base/edit.js.erb
ab_admin-0.2.3 app/views/admin/base/edit.js.erb
ab_admin-0.2.2 app/views/admin/base/edit.js.erb
ab_admin-0.2.1 app/views/admin/base/edit.js.erb
ab_admin-0.2.0 app/views/admin/base/edit.js.erb
ab_admin-0.1.2 app/views/admin/base/edit.js.erb
ab_admin-0.1.1 app/views/admin/base/edit.js.erb