2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 23:51:08 +00:00

Revert "Set initial value fields to disabled for some forms"

This reverts commit c1271367bd.
This commit is contained in:
Oliver
2018-04-28 12:14:18 +10:00
parent c1271367bd
commit 7ebb723d15
5 changed files with 6 additions and 48 deletions

View File

@@ -98,18 +98,11 @@ $(document).ready(function () {
launchModalForm("#modal-form", "{% url 'part-edit' part.id %}");
});
{% if part.category %}
var partRedirect = "{% url 'category-detail' part.category.id %}";
{% else %}
var partRedirect = "{% url 'part-index' %}";
{% endif %}
$('#delete-part').click(function() {
launchDeleteForm("#modal-delete",
"{% url 'part-delete' part.id %}",
{
redirect: partRedirect
});
{redirect: "{% url 'part-index' %}"}
);
});
});
</script>