This commit is contained in:
2018-11-13 22:10:44 +01:00
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -182,8 +182,10 @@ function show_part_info(partID) {
$('tr#datasheet-head').html($('<td>DATASHEET: <a href="' + data.datasheet + '" target="_blank"><i class="fa fa-file-text" aria-hidden="true"></i></a></td>'));
$('input[name=datasheet-url-input]').val(data.datasheet);
}
else
else {
$('tr#datasheet-head td').text('DATASHEET: ');
$('input[name=datasheet-url-input]').val('');
}
$('#edit-button').click(function() {
init_edit(partID);
});