Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( $(this).val().length > 3 ) {
- var term = $(this).val().replace(' ','+'),
- country = $('#appAdviceCountry').val();
- // Is it an ID?
- if ( term.match(/id[0-9]{0,9}/g) || term.match(/[0-9]{0,9}/g) {
- }
- // Is it an URL?
- else if ( term.substr(0,3) == 'http' ) {
- }
- // Must be a search query
- else {
- queryApple(term, country);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement