alchemy-solidus 7.0.0 → 7.0.1

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
  SHA256:
3
- metadata.gz: a00300118bc15c8ac5bdb72c531f87161dc9b96bf02a12e2e24b2ae96889d2bf
4
- data.tar.gz: c88fd8a587782cab3f059fd634f8160bf09b5daacdc4ba2684a4b08ad1edf233
3
+ metadata.gz: d86c94ee49a6cd83833924769726f3fc3031d9d52bf027f625193e834fe07b3f
4
+ data.tar.gz: 42a8cccc0ab2367ddb06503e3b74b9aaa8f18723417981fca1e8eb7dce97a173
5
5
  SHA512:
6
- metadata.gz: e1cef57202eaf15a1b4174c1853d0ca23f981169d01a2e521aab07710ac88a0e6fb193f76d9cef0beb0db93aa3e2dbe7f084b99666031b5a5cc1288d3ecabcf3
7
- data.tar.gz: dd070d028b041a37526c786fe0742b56f6dcbafe839aa0292c6e425cdc17ba735f8ece13eb1a32eba68814a781e9069b410ca41f806b0d53bb013e194592a61e
6
+ metadata.gz: 7a4ea1882a360b2cdb1a5f98256ab18e0c4e7b8e5152b143875c935ce82c626fc43c8e651ccf753f1b3de33c95b0f8b57e0f74c61db894b306e4dd3e5850a015
7
+ data.tar.gz: 6ca23c0dd8267e5cb757bded3707adf8c749a36d3480ca03121f9a8a3e3bb514058d366d21879866487ca739a4f41a9446d6e56feb3939855b3ffa445489efef
data/README.md CHANGED
@@ -43,7 +43,7 @@ This version runs with Alchemy v7.0 and v7.1
43
43
  Add this line to your applications `Gemfile`:
44
44
 
45
45
  ```ruby
46
- gem 'alchemy-solidus', '~> 6.0'
46
+ gem 'alchemy-solidus', '~> 7.0'
47
47
  ```
48
48
 
49
49
  Install the gem with:
@@ -1,5 +1,7 @@
1
1
  <script>
2
- $("#overlay_tabs").on("SelectLinkTab.Alchemy", function(event, data) {
2
+ var $tabs = $("#overlay_tabs")
3
+
4
+ $tabs.on("SelectLinkTab.Alchemy", function(event, data) {
3
5
  $("#product_link").select2("val", data.link.attr("href"))
4
6
  })
5
7
  $("#product_link").alchemyProductSelect({
@@ -31,9 +33,13 @@
31
33
  id: Spree.mountedAt() + "products/"+ product.slug,
32
34
  text: product.name
33
35
  })
34
- $("#overlay_tabs").tabs("option", "active",
35
- $("#overlay_tabs > div").index($("#overlay_tab_product_link"))
36
- )
36
+ if (typeof $tabs.tabs === "function") {
37
+ $tabs.tabs("option", "active",
38
+ $("#overlay_tabs > div").index($("#overlay_tab_product_link"))
39
+ )
40
+ } else {
41
+ $tabs.get(0).show('overlay_tab_product_link')
42
+ }
37
43
  }
38
44
  })
39
45
  },
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
  module Solidus
3
- VERSION = "7.0.0"
3
+ VERSION = "7.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-solidus
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-29 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms