Fixed datasheed view in details overlay

pull/3/head
assar 7 years ago
parent 28db870dd5
commit 42d4d56cf1

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

Loading…
Cancel
Save