spree_backend 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 141a054dae5dabb9b0419390a14925ab30b09091
4
- data.tar.gz: 79f1e35967bc67ca1601f3651d5124d2c78a23dc
3
+ metadata.gz: d7759da9ebea2887d4844ded41d9c052c19c74ef
4
+ data.tar.gz: 27d17dcca113ec1013a0cad52d59d9dd5e441af3
5
5
  SHA512:
6
- metadata.gz: 87a7898e914acab3eaa8258652c218814a91956937cda7c46ae970efb1338a36958fddbbace23ecc070905113bceb7758f94c8ba4f9be35af6b0e4432bc3f4c7
7
- data.tar.gz: 0d9fc6a1aa1427f8c972c337de690268010e745223e10946ca68806b01fc3e9a6d15db13cf92569c6df7e9b049d2009d1dbbaaff1747e2bdb3370c4e8d361b9d
6
+ metadata.gz: c08e701c0e486bfbd31c5a1d14996c30b1bfd64183b69f5cfeca7ec627890894bbd7e054a2506c0c43f296c0d93ed314d843313d939bdc9cfc9460cd9e12e6b5
7
+ data.tar.gz: 9231a23b39e4bcf78eddaa47b2a26b7809885144102dd9b26908935398d13d4377ffddb2192655a2fbc7391ab5228c677febdfb4c5b2ed4b3f18e8c9ce08ce63
@@ -21,6 +21,9 @@ $.fn.variantAutocomplete = function() {
21
21
  this.select2({
22
22
  placeholder: Spree.translations.variant_placeholder,
23
23
  minimumInputLength: 3,
24
+ initSelection: function (element, callback) {
25
+ $.get(Spree.routes.variants_search + '/' + element.val(), {}, function (data) { callback(data) })
26
+ },
24
27
  ajax: {
25
28
  url: Spree.url(Spree.routes.variants_search),
26
29
  datatype: 'json',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.3
19
+ version: 2.2.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.3
26
+ version: 2.2.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.3
33
+ version: 2.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.3
40
+ version: 2.2.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jquery-rails
43
43
  requirement: !ruby/object:Gem::Requirement