From bcbdc6b52ad221c4b48466288f2ec59568886fd8 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Thu, 15 Nov 2018 15:42:36 +0100 Subject: [PATCH] Whoops. Fixed for real now --- parts/static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/static/script.js b/parts/static/script.js index 2a47dee..177732e 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -173,7 +173,7 @@ function show_part_info(partID) { $('img#map').attr('src', 'parts/map/' + data.container_id); $('#location-dropdown').empty(); $.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(''); }); $('#location-dropdown').val(data.location_id);