mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
redirect to index if company was deleted
This commit is contained in:
parent
00dffd953b
commit
5435cd28c9
@ -338,6 +338,8 @@ $('#delete-part').click(function() {
|
||||
onSuccess: function() {
|
||||
{% if part.manufacturer %}
|
||||
window.location.href = "{% url 'company-detail' part.manufacturer.id %}";
|
||||
{% else%}
|
||||
window.location.href = "{% url 'index' %}";
|
||||
{% endif %}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user