caboose-store 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjRhMmJkYjY1MGIzOTE5ODFiYjMzZTA1YTUxYzVmMTEwNzAxM2YyOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGE2ZTVjZTg2OTJkMjQzNTU1ZTg2YWJiZmRhYjQ5MmI4NDg3MjUxMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGE0ZTBmYTg3MzBmMzhkOGEwMjZiM2Q1YzhjZDBmNDIxOGU3NzE4OGE2Y2Q5
|
10
|
+
NDZmYTE1MzUyODQ1MGQ0OTQxYWFhOTIyYjYyN2UwODhiMzNhYWYxZGM2Mzc4
|
11
|
+
OTJhOTI5ZTRhOThiMjI5NjdkOTYzOTcwZDI4MmQ1ZThiYWVjNTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTYyNjEzMjMwNGQ1OTM5ZGUzMzU1MjUzNDMwYzkyOTQ1YWQxNThiZTQxOWFl
|
14
|
+
Mzg2NDc3M2ViZGFhM2E3OWU2NDc3NGQ3MTRhZDAyZjVjOGZlM2QxNzZmMDMy
|
15
|
+
YzAwN2FlNmQ3Y2Q2YzE4ZGVlMjQzZWFiNzhjMGI0YTRiMjBkMTk=
|
@@ -276,10 +276,12 @@ Caboose.Store.Modules.Product = (function() {
|
|
276
276
|
// Image Methods
|
277
277
|
//
|
278
278
|
|
279
|
-
self.setImageFromVariant = function(variant) {
|
280
|
-
|
279
|
+
self.setImageFromVariant = function(variant) {
|
280
|
+
if (!variant || !variant.images || variant.images.length == 0 || !variant.images[0])
|
281
|
+
return;
|
281
282
|
|
282
|
-
|
283
|
+
var $figure = self.$images.children('figure');
|
284
|
+
if (variant.images && variant.images.length > 0 && variant.images[0]) {
|
283
285
|
$figure.css('background-image', 'url(' + variant.images[0].urls.large + ')');
|
284
286
|
} else if ($figure.css('background-image').toLowerCase() == 'none') {
|
285
287
|
$figure.css('background-image', 'url(' + _.first(self.product.images).urls.large + ')');
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|