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.  templates: {
  2.                         empty:
  3.                         '<div class="tasearch-no-results">' +
  4.                         'Unable to find any performer, venue or event that match the current query' +
  5.                         '</div>',
  6.  
  7.                         suggestion: function (data) {
  8.                             var text = "";
  9.                             if (data.type === 'all') {
  10.                                 text = "<div class='tasearch-all-results'><a href='#'>"+data.title+"</a></div>";
  11.                             }
  12.                             if (data.type === 'heading') {
  13.                                 text = "<div class='tasearch-heading "+data.dataType+"'>"+data.title+"</div>";
  14.                             }
  15.                             if (data.type === 'performer') {
  16.                                 text = "<div class=''><a href='"+data.url+"'>"+data.title+"</a></div>"
  17.                             }
  18.                             if (data.type === 'event') {
  19.                                 text = "<div class=''><a href='"+data.url+"'>"+data.title+"<div class='info'>"+data.eventDate+" | "+ data.vName+"</div></a></div>";
  20.                             }
  21.                             if (data.type === 'venue') {
  22.                                 text = "<div class=''><a href='"+data.url+"'>"+data.title+"<div class='info'>"+data.city+" | "+ data.state+"</div></a></div>"
  23.                             }
  24.                             return text;
  25.                         }
  26.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement