Rapid TV News – Broadcast Technology Daily

{{{title}}}]]>‘);
jQuery(‘#typeahead-search’).typeahead(
{
minLength: 3,
highlight: true,
}

, {
source: client.initIndex(‘rtvnstories’).ttAdapter({ “hitsPerPage”: 5 }),
displayKey: ‘title’, // attribute displayed once selected
templates: {
suggestion: function(hit) {

hit.link = ‘index.php?option=com_content&view=article&id=’+hit.objectID+’&catid=’+hit.catid+’&Itemid=365’;
return template.render(hit); // moustache template rendered by Hogan
}
}
});

jQuery(‘#typeahead-search’).on(‘typeahead:selected’, function(event, selection) {
var url = ‘index.php?option=com_content&view=article&id=’+selection.objectID+’&catid=’+selection.catid+’&Itemid=365’;
window.location.href = url;

});

});



Source