|
|
@ -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);
|
|
|
|