diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index 4e85853e69..8c72557d27 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -146,8 +146,7 @@ {% include "spacer.html" %} - @@ -255,7 +254,7 @@ {% block details_below %} -
+
@@ -563,4 +562,12 @@ }); {% endif %} + $('#collapse-part-details').on('show.bs.collapse', function() { + $('#toggle-details-button').html('{% trans "Hide Part Details" %}'); + }); + + $('#collapse-part-details').on('hide.bs.collapse', function() { + $('#toggle-details-button').html('{% trans "Show Part Details" %}'); + }); + {% endblock %} \ No newline at end of file