Sha256: 341b396674dbc33013ccb6329a9d3f6aa573204ef369d469159b4a0c06f91663
Contents?: true
Size: 1.49 KB
Versions: 4
Compression:
Stored size: 1.49 KB
Contents
{:uriI"file://app/assets/javascripts/products.js?type=application/javascript&pipeline=self&id=2f9e64b0f8ee48f2367ed296a8de95400d9b1003d1cfc07380ad4bf4f0b4851f: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"b// 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<choices.length; i++) if (~choices[i].toLowerCase().indexOf(term)) matches.push(choices[i]); response(data); }); } }); }); ;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"%f:1~vMDW1JU|̥kY 1]|:lengthib:dependencies_digest"%q*jR._U/u_ΈL2:idI"E2f9e64b0f8ee48f2367ed296a8de95400d9b1003d1cfc07380ad4bf4f0b4851f;F: mtimel+X
Version data entries
4 entries across 4 versions & 1 rubygems