Sha256: e94c336ab15a91fd632e212d3b07fb1990e4119efb31445a139e837c212661bb
Contents?: true
Size: 1.88 KB
Versions: 2
Compression:
Stored size: 1.88 KB
Contents
{I" class:ETI"ProcessedAsset; FI"logical_path; TI"$spree/backend/product_picker.js; FI" pathname; TI"x/usr/local/rvm/gems/ruby-2.0.0-p481/gems/spree_backend-2.2.4/app/assets/javascripts/spree/backend/product_picker.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+Æ‘TI"length; TiþI"digest; TI"%b97ec7fd0bc38ca1975fbb906d21d521; FI"source; TI"þ$.fn.productAutocomplete = function () { 'use strict'; this.select2({ minimumInputLength: 1, multiple: true, initSelection: function (element, callback) { $.get(Spree.routes.product_search, { ids: element.val().split(',') }, function (data) { callback(data.products); }); }, ajax: { url: Spree.routes.product_search, datatype: 'json', data: function (term, page) { return { q: { name_cont: term, sku_cont: term }, m: 'OR', token: Spree.api_key }; }, results: function (data, page) { var products = data.products ? data.products : []; return { results: products }; } }, formatResult: function (product) { return product.name; }, formatSelection: function (product) { return product.name; } }); }; $(document).ready(function () { $('.product_picker').productAutocomplete(); }); ; TI"dependency_digest; TI"%d16a4e524b38f9dc629e3439b48bff28; FI"required_paths; T[I"x/usr/local/rvm/gems/ruby-2.0.0-p481/gems/spree_backend-2.2.4/app/assets/javascripts/spree/backend/product_picker.js; FI"dependency_paths; T[{I" path; TI"x/usr/local/rvm/gems/ruby-2.0.0-p481/gems/spree_backend-2.2.4/app/assets/javascripts/spree/backend/product_picker.js; FI" mtime; TI"2014-09-04T12:22:30-04:00; TI"digest; TI"%b2796ca03d46925165279d88d0593d9c; FI" _version; TI"%5ef14a844324cba3e114bd0123f88a5e; F
Version data entries
2 entries across 2 versions & 1 rubygems