mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Callback to remove row
This commit is contained in:
parent
0507e8a3bc
commit
14ab1bef14
@ -832,6 +832,13 @@ function loadStockTable(table, options) {
|
||||
|
||||
$(modal).find('.modal-form-content').html(html);
|
||||
|
||||
// Attach callbacks for the action buttons
|
||||
$(modal).find('.button-stock-item-remove').click(function() {
|
||||
var pk = $(this).attr('pk');
|
||||
|
||||
$(modal).find(`#stock_item_${pk}`).remove();
|
||||
});
|
||||
|
||||
// Add a "confirm" button
|
||||
insertConfirmButton({
|
||||
modal: modal,
|
||||
|
Loading…
Reference in New Issue
Block a user