2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

More refactoring

This commit is contained in:
Oliver Walters
2022-05-03 17:27:21 +10:00
parent f3e8edaf1f
commit f0e8e32c8a
3 changed files with 25 additions and 18 deletions

View File

@ -754,12 +754,18 @@
$("#part-order2").click(function() {
launchModalForm("{% url 'order-parts' %}", {
data: {
part: {{ part.id }},
},
reload: true,
});
inventreeGet(
'{% url "api-part-detail" part.pk %}',
{},
{
success: function(part) {
orderParts(
[part],
{}
);
}
}
);
});
onPanelLoad("test-templates", function() {

View File

@ -549,15 +549,6 @@
}
}
);
return;
launchModalForm("{% url 'order-parts' %}", {
data: {
part: {{ part.id }},
},
reload: true,
});
});
{% if roles.part.add %}