Sha256: 756a77c0f3f127d287987b9aabb8f2ae27589d6e6f245675acb4d2784e1e526e
Contents?: true
Size: 1.51 KB
Versions: 3
Compression:
Stored size: 1.51 KB
Contents
{:uriI"file://app/assets/javascripts/products.js?type=application/javascript&pipeline=self&id=eb6c74a95f3ef24d85a57cfc83cd6c17d044c8dfad9c43993c3911a4deedafa5: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"z// 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"]', minChars: 1, 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"%˔Ӡռ{"Ќ@R,i"