diff --git a/parts/static/script.js b/parts/static/script.js index 9714d0e..b84fe07 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -169,8 +169,9 @@ function delete_entry(partID) { function show_part_info(partID) { $.getJSON(rootURL + 'getpartinfo/' + partID, function(data) { $('table#details tr#location td p').text(text_filter(data.location_descriptor)); // name is the location friendly name - $('#location-dropdown').val(data.location_id); $('#container-dropdown').val(data.container_id); + container_onchange(); + $('#location-dropdown').val(data.location_id); $('table#details tr#partno td p').text(text_filter(data.partno)); $('table#details tr#partno td input').val(text_filter(data.partno)); $('table#details tr#description td p').text(text_filter(data.description)); @@ -181,7 +182,6 @@ function show_part_info(partID) { var $el = $('#datasheet-finput'); $el.wrap('