More fixes

This commit is contained in:
assar
2017-06-10 14:25:53 +02:00
parent 5eb3cb6e46
commit 750da21749
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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() {