Avoid error when there is no #cloud-search element
This commit is contained in:
parent
b10369a867
commit
0c7abdb99a
@ -152,6 +152,7 @@ var elasticSearch = (function($, url) {
|
||||
$(document).ready(function() {
|
||||
|
||||
var searchInput = $('#cloud-search');
|
||||
if (!searchInput.length) return;
|
||||
|
||||
var tu = searchInput.typeahead({hint: true}, {
|
||||
//source: algoliaIndex.ttAdapter(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user