Enable button for locating a StockLocation

This commit is contained in:
Oliver Walters 2022-05-09 23:45:29 +10:00
parent 224092e192
commit 35fbb910e8

View File

@ -215,6 +215,14 @@
{% block js_ready %}
{{ block.super }}
{% if plugins_enabled and location %}
$('#locate-location-button').click(function() {
locateItemOrLocation({
location: {{ location.pk }},
});
});
{% endif %}
onPanelLoad('sublocations', function() {
loadStockLocationTable($('#sublocation-table'), {
params: {