Sha256: 22b01d7fcae2617e7f70f19f4d73974cea5e32b9694b607f0f0fedb913112c22
Contents?: true
Size: 787 Bytes
Versions: 12
Compression:
Stored size: 787 Bytes
Contents
// Placeholder manifest file. // the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js' //= require_tree . $(function () { var products = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.whitespace, queryTokenizer: Bloodhound.tokenizers.whitespace, limit: 10, prefetch: Spree.pathFor('autocomplete/products.json'), remote: { url: Spree.pathFor('autocomplete/products.json?keywords=%QUERY'), wildcard: '%QUERY' } }); products.initialize(); // passing in `null` for the `options` arguments will result in the default // options being used $('#keywords').typeahead({ minLength: 2, highlight: true }, { name: 'products', source: products }); });
Version data entries
12 entries across 12 versions & 1 rubygems