The Final Say in Fashion Jewelry

' : '') +

'' +

hit._highlightResult.name.value +

(hit.categories hit.categories.length 0 ? '

in ' + hit.categories.join(', ') + '

' : '') +

(hit.price hit.price 0 ? '

$' + hit.price + '

' : '') +

'' +

'' +

'';

html_products += '' +

'

See all search results

';

else

html_products += '

No results.

'

else

html_products = '';

$('search_autocomplete_products2').update(html_products);

k++;

/**

* Handle categories

*/

if (this.options.categoriesQueryOptions.hitsPerPage 0)

var categories_hits = results[k].hits;

var categories = [];

var html_categories;

categories_hits.each(function(hit)

categories.push(hit);

);

if (categories.length 0)

html_categories = '

Categories

';

for (i = 0; i ' +

(hit.image_url ? '' : '');

if (hit.image_url)

html_categories += '';

else

html_categories += '

';

html_categories += hit._highlightResult.path.value;

if (hit.product_count != undefined)

html_categories += ' (' + hit.product_count + ')';

html_categories += '

' +

'' +

'';

else

html_categories = '';

$('search_autocomplete_categories2').update(html_categories);

k++;



/**

* Handle Pages

*/

if (this.options.pagesQueryOptions.hitsPerPage 0)

var pages_hits = results[k].hits;

var pages = [];

var html_pages;

pages_hits.each(function(hit)

pages.push(hit);

);

if (pages.length 0)

html_pages = '

Pages

';

for (i = 0; i ';

html_pages += '

';

html_pages += hit._highlightResult.name.value;

html_pages += '

' +

'' +

'';

else

html_pages = '';



$('search_autocomplete_pages2').update(html_pages);

k++;

this.options.resultLinks = $('search_autocomplete2').select('a');

clearResults: function()

// delay the dropdown menu clearing to ensure the click bridal jewellery sets on hits can be processed

setTimeout(function()

$('search_autocomplete_categories2').update('');

$('search_autocomplete_products2').update('');

$('search_autocomplete_pages2').update('');

, 100);

;

//]]

?

Write a comment

Comments: 0