2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

Refactor StockExportOptions form

This commit is contained in:
Oliver
2021-07-19 17:23:18 +10:00
parent e7d9485c16
commit efb4f194b6
9 changed files with 71 additions and 105 deletions

View File

@ -644,17 +644,9 @@
});
$("#stock-export").click(function() {
launchModalForm("{% url 'stock-export-options' %}", {
submit_text: "{% trans 'Export' %}",
success: function(response) {
var url = "{% url 'stock-export' %}";
url += "?format=" + response.format;
url += "&cascade=" + response.cascade;
url += "&part={{ part.id }}";
location.href = url;
},
exportStock({
part: {{ part.pk }}
});
});