diff --git a/parts/static/script.js b/parts/static/script.js
index 0195bc0..d59268c 100644
--- a/parts/static/script.js
+++ b/parts/static/script.js
@@ -182,8 +182,10 @@ function show_part_info(partID) {
$('tr#datasheet-head').html($('
DATASHEET: | '));
$('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);
});