From 227e725e95e5283c946d2a2119dbd79442456961 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Tue, 13 Nov 2018 22:09:34 +0100 Subject: [PATCH] more magical octopart button prototype (temporarily disabled) --- parts/static/script.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/parts/static/script.js b/parts/static/script.js index 0195bc0..9fc470f 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -242,6 +242,8 @@ function container_onchange() { } + + function octopartFetch(){ $.getJSON(rootURL + 'fetchOctopartSnippet/' + $('#partno-input').val()).done(function(json){ if (json['result']=='ok'){ @@ -268,4 +270,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