Update new item rows buttons with data. Issue #48

This commit is contained in:
Tom Price
2015-03-31 16:50:19 +01:00
parent 417fd81b9a
commit fbabed8be5

View File

@@ -87,6 +87,7 @@ $('body').on('submit', '#item-form', function (e) {
// Add the new table
$('#new-item-row').clone().attr('id', 'item-' + pk).data('pk', pk).appendTo('#item-table-body');
$('#item-'+pk+' .item-delete, #item-'+pk+' .item-edit').data('pk', pk)
} else {
// Existing item
// update data structure