octopart-fetch button is mash-like-an-idiot proof
This commit is contained in:
@@ -248,7 +248,9 @@ function container_onchange() {
|
||||
}
|
||||
|
||||
function octopartFetch(){
|
||||
$('#magic-autofill-button').attr('disabled', 'disabled');
|
||||
$.getJSON(rootURL + 'fetchOctopartSnippet/' + $('#partno-input').val()).done(function(json){
|
||||
$('#magic-autofill-button').removeAttr('disabled');
|
||||
if (json['result']=='ok'){
|
||||
$('#description-input').val(json['snippet']);
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user