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

Added modal form success messages

- More to be done, just a start
- Create / edit / delete
This commit is contained in:
Oliver
2018-04-30 00:23:02 +10:00
parent a2c1eda5c0
commit a9c20f5d95
4 changed files with 45 additions and 22 deletions

View File

@@ -99,7 +99,8 @@
$('#delete-part').click(function() {
launchDeleteForm("#modal-delete",
"{% url 'part-delete' part.id %}",
{redirect: "{% url 'part-index' %}"}
);
{
redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"}{% endif %}
});
});
{% endblock %}