Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- searchInput.bind('typeahead:select', function(event, suggestion) {
- switch (suggestion.type) {
- case "all":
- me.toSearchResults(searchInput.typeahead('val'), 1);
- break;
- case "event":
- case "performer":
- case "venue":
- window.location.href = suggestion.find("a").attr('href');
- break;
- default:
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement