2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 19:20:55 +00:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Oliver Walters
2019-08-29 21:37:03 +10:00
2 changed files with 27 additions and 2 deletions

View File

@ -54,6 +54,19 @@
{% endblock %}
{% block js_ready %}
{{ block.super }}
if (sessionStorage.getItem("inventree-show-part-locations")) {
$("#collapse-item-locations").collapse('show');
}
$("#collapse-item-locations").on('shown.bs.collapse', function() {
sessionStorage.setItem('inventree-show-part-locations', 1);
});
$("#collapse-item-locations").on('hidden.bs.collapse', function() {
sessionStorage.removeItem('inventree-show-part-locations');
});
$('#location-create').click(function () {
launchModalForm("{% url 'stock-location-create' %}",
{