|
|
|
@ -203,7 +203,7 @@ function show_part_info(partID) {
|
|
|
|
|
$('#quantity-info').text(text_filter(data.quantity));
|
|
|
|
|
$('#notes-info').text(text_filter(data.notes));
|
|
|
|
|
if (data.datasheet != null)
|
|
|
|
|
$('#datasheet-info').append($('<a href="https://www.elab.kth.se/parts/getfile/' + data.datasheet.substring(0, data.datasheet.length - 4) + '"><i class="fa fa-file-text" aria-hidden="true"></i></a>'));
|
|
|
|
|
$('#datasheet-info').html($('<a href="https://www.elab.kth.se/parts/getfile/' + data.datasheet.substring(0, data.datasheet.length - 4) + '"><i class="fa fa-file-text" aria-hidden="true"></i></a>'));
|
|
|
|
|
else
|
|
|
|
|
$('#datasheet-info').text(' ');
|
|
|
|
|
$('#edit-button').click(function() {
|
|
|
|
|