From d13d872c2025f6921b11fd6124105269f2105a0a Mon Sep 17 00:00:00 2001 From: Tom Price Date: Tue, 31 Mar 2015 16:50:19 +0100 Subject: [PATCH] Update new item rows buttons with data. Issue #48 --- RIGS/static/js/interaction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/RIGS/static/js/interaction.js b/RIGS/static/js/interaction.js index 20f29d4c..6dd06f0e 100644 --- a/RIGS/static/js/interaction.js +++ b/RIGS/static/js/interaction.js @@ -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