diff --git a/parts/static/script.js b/parts/static/script.js index d59268c..ae31607 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -244,6 +244,8 @@ function container_onchange() { } + + function octopartFetch(){ $.getJSON(rootURL + 'fetchOctopartSnippet/' + $('#partno-input').val()).done(function(json){ if (json['result']=='ok'){ @@ -270,4 +272,10 @@ $(document).ready(function() { else perform_query(); }); + + // $('#partno-input').bind('blur',function() { + // if($('#partno-input').val().length > 0){ + // octopartFetch(); + // } + // }); }); \ No newline at end of file diff --git a/parts/templates/partsearch.html b/parts/templates/partsearch.html index 9e2e25b..3fbacfb 100644 --- a/parts/templates/partsearch.html +++ b/parts/templates/partsearch.html @@ -59,7 +59,7 @@