Sha256: cc955d3f9a630fc942d14967a8aae417250e9e7adcb2b1365ba87db20205754e
Contents?: true
Size: 1.55 KB
Versions: 4
Compression:
Stored size: 1.55 KB
Contents
{:uriI"—file://app/assets/javascripts/products.js?type=application/javascript&pipeline=self&id=94367c6b8ddcb537d5700c167851141d2ac0b627ecacf3b6638d1df6799c665f: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); term = term.toLowerCase(); var matches = []; for (i=0; i<data.length; i++) if (~data[i].toLowerCase().indexOf(term)) matches.push(data[i]); console.log(matches) 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"%TW½Þ·èRM“æoøœ3ïî䃳b+ô‰)̦Ó~¢:lengthi¤:dependencies_digest"%35›iR®c®3F‚%DšóààÆD…q)ölm:idI"E94367c6b8ddcb537d5700c167851141d2ac0b627ecacf3b6638d1df6799c665f;F: mtimel+…ˆX
Version data entries
4 entries across 4 versions & 1 rubygems