mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Stock locations are now persistent
This commit is contained in:
parent
ef674061de
commit
0fba236eef
@ -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' %}",
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user