|
|
@ -291,6 +291,15 @@ $(document).ready(function() {
|
|
|
|
perform_query();
|
|
|
|
perform_query();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//For linking to a search query or specific part
|
|
|
|
|
|
|
|
const search_params = new URLSearchParams(window.location.search);
|
|
|
|
|
|
|
|
if(search_params.has('q')){
|
|
|
|
|
|
|
|
$('.search-bar').val(search_params.get('q')); perform_query();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(search_params.has('p')){
|
|
|
|
|
|
|
|
show_part_info(search_params.get('p'));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// $('#partno-input').bind('blur',function() {
|
|
|
|
// $('#partno-input').bind('blur',function() {
|
|
|
|
// if($('#partno-input').val().length > 0){
|
|
|
|
// if($('#partno-input').val().length > 0){
|
|
|
|
// octopartFetch();
|
|
|
|
// octopartFetch();
|
|
|
|