Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. searchInput.bind('typeahead:select', function(event, suggestion) {
  2.                 switch (suggestion.type) {
  3.                     case "all":
  4.                         me.toSearchResults(searchInput.typeahead('val'), 1);
  5.                         break;
  6.                     case "event":
  7.                     case "performer":
  8.                     case "venue":
  9.                         window.location.href = suggestion.find("a").attr('href');
  10.                         break;
  11.                     default:
  12.                 }
  13.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement