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() {
|
onSuccess: function() {
|
||||||
{% if part.manufacturer %}
|
{% if part.manufacturer %}
|
||||||
window.location.href = "{% url 'company-detail' part.manufacturer.id %}";
|
window.location.href = "{% url 'company-detail' part.manufacturer.id %}";
|
||||||
|
{% else%}
|
||||||
|
window.location.href = "{% url 'index' %}";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user