MOAR fixes
This commit is contained in:
+1
-1
@@ -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.datasheet + '"><i class="fa fa-file-text" aria-hidden="true"></i></a>');
|
$('#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>');
|
||||||
else
|
else
|
||||||
$('#datasheet-info').text(' ');
|
$('#datasheet-info').text(' ');
|
||||||
$('#edit-button').click(function() {
|
$('#edit-button').click(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user