more magical octopart button prototype (temporarily disabled)

master
Marek Baczynski 6 years ago
parent 3cb81e9a79
commit 227e725e95

@ -242,6 +242,8 @@ function container_onchange() {
} }
function octopartFetch(){ function octopartFetch(){
$.getJSON(rootURL + 'fetchOctopartSnippet/' + $('#partno-input').val()).done(function(json){ $.getJSON(rootURL + 'fetchOctopartSnippet/' + $('#partno-input').val()).done(function(json){
if (json['result']=='ok'){ if (json['result']=='ok'){
@ -268,4 +270,10 @@ $(document).ready(function() {
else else
perform_query(); perform_query();
}); });
// $('#partno-input').bind('blur',function() {
// if($('#partno-input').val().length > 0){
// octopartFetch();
// }
// });
}); });
Loading…
Cancel
Save