Sha256: 462288c36ede3e4b1cc3af59928796374d1fbf439bc73f24bfefbab55314671a
Contents?: true
Size: 1.48 KB
Versions: 4
Compression:
Stored size: 1.48 KB
Contents
{:uriI"file://app/assets/javascripts/products.js?type=application/javascript&pipeline=self&id=dbd876df9c941d2c9209fe9a5aba97f6a897fc1ad1c60438a905afb9319c72b5: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"\// 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', { q: term }, function(data){ console.log(data); 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"%hQu?Tod`Zo:lengthi\:dependencies_digest"%ATY{ȴ! b+°2; :idI"Edbd876df9c941d2c9209fe9a5aba97f6a897fc1ad1c60438a905afb9319c72b5;F: mtimel+ńX
Version data entries
4 entries across 4 versions & 1 rubygems