Sha256: 06014e5bfcb1d0d0d87a9362406478e6d454ac92671b12e212b8ad635b1a0ef3

Contents?: true

Size: 1.49 KB

Versions: 7

Compression:

Stored size: 1.49 KB

Contents

{:uriI"file://app/assets/javascripts/products.js?type=application/javascript&pipeline=self&id=1b1886b8dad07deb97a6765fc365c9f0a2801035738554e85d00d9c2756eac5f:ET:load_pathI"app/assets/javascripts;T:
filenameI"'app/assets/javascripts/products.js;T:	nameI"
products;T:logical_pathI"products.self.js;T:content_typeI"application/javascript;T:sourceI"g// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.

$(document).ready(function() {
  new autoComplete({
      selector: 'input[name="q"]',
      source: function(term, response){
          $.getJSON('/products/autocomplete_endpoint', { term: term }, function(data){
            term = term.toLowerCase();
            var matches = [];
            for (i=0; i<data.length; i++)
              if (~data[i].toLowerCase().indexOf(term)) matches.push(data[i]);
            response(matches);
          });
      }
  });
});
;T:
metadata{:dependencieso:Set:
@hash}
I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"5file-digest://app/assets/javascripts/products.js;TTF:
requiredo;;}F:stubbedo;;}F:
linkso;;}F:charsetI"
utf-8;F:digest"%;#H(Eȹ	~n+ y]iM:lengthig:dependencies_digest"%X$ʑ;K򥉖}_J0a.1c:idI"E1b1886b8dad07deb97a6765fc365c9f0a2801035738554e85d00d9c2756eac5f;F:
mtimel+X

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
autocompl-0.2.2 test/dummy/tmp/cache/assets/sprockets/v3.0/CY/CYIGAczMae3mtaRkrUx-7RZpLazAkhVFhGWzWlWG7vc.cache
autocompl-0.2.1 test/dummy/tmp/cache/assets/sprockets/v3.0/CY/CYIGAczMae3mtaRkrUx-7RZpLazAkhVFhGWzWlWG7vc.cache
autocompl-0.2.0 test/dummy/tmp/cache/assets/sprockets/v3.0/CY/CYIGAczMae3mtaRkrUx-7RZpLazAkhVFhGWzWlWG7vc.cache
autocompl-0.1.2 test/dummy/tmp/cache/assets/sprockets/v3.0/CY/CYIGAczMae3mtaRkrUx-7RZpLazAkhVFhGWzWlWG7vc.cache
autocompl-0.1.1 test/dummy/tmp/cache/assets/sprockets/v3.0/CY/CYIGAczMae3mtaRkrUx-7RZpLazAkhVFhGWzWlWG7vc.cache
autocompl-0.1.0 test/dummy/tmp/cache/assets/sprockets/v3.0/CY/CYIGAczMae3mtaRkrUx-7RZpLazAkhVFhGWzWlWG7vc.cache
autocompl-0.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/CY/CYIGAczMae3mtaRkrUx-7RZpLazAkhVFhGWzWlWG7vc.cache