Sha256: 3941375cccf3883b9ce62d93ecd860b4a689d205ac371504b24f68b979ff193c

Contents?: true

Size: 453 Bytes

Versions: 12

Compression:

Stored size: 453 Bytes

Contents

<%
  wrap_id = dom_id(commentable, 'list_admin_comments')
  html = render('list_block')
%>

$base = $('#<%= dom_id(commentable, 'list') %>');
$cont = $('#<%= wrap_id %>')
if ($cont[0]) {
  $cont.html("<%= j html %>");
} else {
  $base.after("<%= j %[<tr id="#{wrap_id}" class="list_admin_comments">#{html}</tr>].html_safe %>");
}
var colspan = $base.closest('table').find('tr:first > th').length;
$('#<%= wrap_id %> td:first').attr('colspan', colspan);

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ab_admin-0.11.0 app/views/admin/admin_comments/index.js.erb
ab_admin-0.10.0 app/views/admin/admin_comments/index.js.erb
ab_admin-0.9.0 app/views/admin/admin_comments/index.js.erb
ab_admin-0.8.3 app/views/admin/admin_comments/index.js.erb
ab_admin-0.8.2 app/views/admin/admin_comments/index.js.erb
ab_admin-0.8.1 app/views/admin/admin_comments/index.js.erb
ab_admin-0.8.0 app/views/admin/admin_comments/index.js.erb
ab_admin-0.7.0 app/views/admin/admin_comments/index.js.erb
ab_admin-0.6.1 app/views/admin/admin_comments/index.js.erb
ab_admin-0.6.0 app/views/admin/admin_comments/index.js.erb
ab_admin-0.5.0 app/views/admin/admin_comments/index.js.erb
ab_admin-0.4.0 app/views/admin/admin_comments/index.js.erb