mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 17:02:18 +00:00
Update new item rows buttons with data. Issue #48
This commit is contained in:
@@ -87,6 +87,7 @@ $('body').on('submit', '#item-form', function (e) {
|
|||||||
|
|
||||||
// Add the new table
|
// Add the new table
|
||||||
$('#new-item-row').clone().attr('id', 'item-' + pk).data('pk', pk).appendTo('#item-table-body');
|
$('#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 {
|
} else {
|
||||||
// Existing item
|
// Existing item
|
||||||
// update data structure
|
// update data structure
|
||||||
|
|||||||
Reference in New Issue
Block a user