Whoops. Fixed for real now

pull/3/head
Davide Bongiovanni 6 years ago
parent dac5d96f03
commit bcbdc6b52a

@ -173,7 +173,7 @@ function show_part_info(partID) {
$('img#map').attr('src', 'parts/map/' + data.container_id); $('img#map').attr('src', 'parts/map/' + data.container_id);
$('#location-dropdown').empty(); $('#location-dropdown').empty();
$.getJSON('parts/getlocationsInContainer/' + data.container_id, function(json) { $.getJSON('parts/getlocationsInContainer/' + data.container_id, function(json) {
$.each(data, function(loc_id, loc_name) { $.each(json, function(loc_id, loc_name) {
$('#location-dropdown').append('<option value="' + loc_id + '">' + loc_name + '</option>'); $('#location-dropdown').append('<option value="' + loc_id + '">' + loc_name + '</option>');
}); });
$('#location-dropdown').val(data.location_id); $('#location-dropdown').val(data.location_id);

Loading…
Cancel
Save