1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-01-24 15:05:54 +01:00

8 lines
375 B
Plaintext

$('tr[id=date-<%= @effective_from %>]').nextUntil('tr.primary', ':not(.date)').remove();
var columns = $('table > thead > tr > th').length;
$('tr[id=date-<%= @effective_from %>]').nextUntil('tr.primary').addBack().last().after(
'<tr><td class="form" colspan="'+columns+'"><div id="edit-target">' +
'<%= j render partial: 'targets/edit_form' %>' +
'</div></td></tr>'
);