diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index 77341fe363..5a5a628b9c 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -42,21 +42,35 @@ function moveStock(rows, options) { // Extact part row info var parts = []; - for (i = 0; i < rows.length; i++) { - parts.push(rows[i].pk); - } + var html = "Select new location:
\n"; - var form = ""; for (i = 0; i < response.length; i++) { var loc = response[i]; - form += makeOption(loc.pk, loc.name + ' - ' + loc.description + ''); + html += makeOption(loc.pk, loc.name + ' - ' + loc.description + ''); } - form += " + html += "

"; - modalSetContent(modal, form); + html += "The following stock items will be moved:
\n"; + + modalSetContent(modal, html); attachSelect(modal); $(modal).on('click', '#modal-form-submit', function() {