diff --git a/parts/static/script.js b/parts/static/script.js index 94da536..89488ef 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -203,19 +203,17 @@ function show_part_info(partID) { $('table#details tr#location td').text(text_filter(data.name)); // name is the location friendly name $('table#details tr#partno td').text(text_filter(data.partno)); $('table#details tr#description td').text(text_filter(data.description)); - // $('#description-info').text(text_filter(data.description)); - // $('#quantity-info').text(text_filter(data.quantity)); - // $('#notes-info').text(text_filter(data.notes)); - // if (data.datasheet != null) - // $('#datasheet-info').html($('')); - // else - // $('#datasheet-info').text(' '); - // $('#edit-button').click(function() { - // init_edit(partID); - // }); - // $('#delete-button').click(function() { - // delete_entry(partID); - // }); + $('img#map').attr('src', 'parts/map/' + data.map); + if (data.datasheet != null) + $('tr#datasheet-head').html($('