diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index b287207a51..4a7fc9704e 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -43,6 +43,10 @@
+
+ +
+ {% endblock %} {% block js_ready %} @@ -61,6 +65,19 @@ }); }) + $("#part-create").click(function() { + launchModalForm("#modal-form", + "{% url 'part-create' %}", + { + follow: true, + data: { + {% if category %} + category: {{ category.id }} + {% endif %} + } + }); + }); + {% if category %} $("#cat-edit").click(function () { launchModalForm("#modal-form",