diff --git a/parts/static/script.js b/parts/static/script.js index 4235383..455cccf 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -263,7 +263,9 @@ function octopartFetch(){ $('#description-input').val(''); $('#description-input').attr('placeholder', json['result']); } - }); + }).fail(function() { + $('#magic-autofill-button').removeAttr('disabled'); + }); } $(document).ready(function() {