Re-activating button in case of failure

pull/3/head
davide 6 years ago
parent 5da9712276
commit ae96e7457c

@ -263,7 +263,9 @@ function octopartFetch(){
$('#description-input').val(''); $('#description-input').val('');
$('#description-input').attr('placeholder', json['result']); $('#description-input').attr('placeholder', json['result']);
} }
}); }).fail(function() {
$('#magic-autofill-button').removeAttr('disabled');
});
} }
$(document).ready(function() { $(document).ready(function() {

Loading…
Cancel
Save