spree_frontend 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: df931ef4af21dd431aa322c693d1e5cfa76b331e
|
4
|
+
data.tar.gz: c02595be8ed4b507d773d64774eb22c278ea27dc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7636af2d8817c65d53699ddd555f34d3161c366c46d20b7297ad773789e4e3dc04bf2d23779029783a30582e48f1be7819984b60196fef1ee5c502f748b77051
|
7
|
+
data.tar.gz: c75358398f43ce5402a7235e6b996b4b0310d881e528c13d29adfd81c126887a5ced2b564f7f7987f837d0c2dbb544d7de472ddd820274daa58f505fa9b04543
|
@@ -15,7 +15,7 @@ Spree.ready ($) ->
|
|
15
15
|
countryId = getCountryId(region)
|
16
16
|
if countryId?
|
17
17
|
unless Spree.Checkout[countryId]?
|
18
|
-
$.get Spree.routes.states_search
|
18
|
+
$.get Spree.routes.states_search, {country_id: countryId}, (data) ->
|
19
19
|
Spree.Checkout[countryId] =
|
20
20
|
states: data.states
|
21
21
|
states_required: data.states_required
|
@@ -44,16 +44,22 @@ Spree.ready ($) ->
|
|
44
44
|
stateInput.hide().prop 'disabled', true
|
45
45
|
statePara.show()
|
46
46
|
stateSpanRequired.show()
|
47
|
+
stateSelect.addClass('required') if statesRequired
|
48
|
+
stateInput.removeClass('required')
|
47
49
|
else
|
48
50
|
stateSelect.hide().prop 'disabled', true
|
49
51
|
stateInput.show()
|
50
52
|
if statesRequired
|
51
53
|
stateSpanRequired.show()
|
54
|
+
stateInput.addClass('required')
|
52
55
|
else
|
53
56
|
stateInput.val ''
|
54
57
|
stateSpanRequired.hide()
|
58
|
+
stateInput.removeClass('required')
|
55
59
|
statePara.toggle(!!statesRequired)
|
56
60
|
stateInput.prop('disabled', !statesRequired)
|
61
|
+
stateInput.removeClass('hidden')
|
62
|
+
stateSelect.removeClass('required')
|
57
63
|
|
58
64
|
($ 'p#bcountry select').change ->
|
59
65
|
updateState 'b'
|
@@ -18,7 +18,7 @@ Spree.addImageHandlers = ->
|
|
18
18
|
|
19
19
|
Spree.showVariantImages = (variantId) ->
|
20
20
|
($ 'li.vtmb').hide()
|
21
|
-
($ 'li.
|
21
|
+
($ 'li.tmb-' + variantId).show()
|
22
22
|
currentThumb = ($ '#' + ($ '#main-image').data('selectedThumbId'))
|
23
23
|
if not currentThumb.hasClass('vtmb-' + variantId)
|
24
24
|
thumb = ($ ($ 'ul.thumbnails li:visible.vtmb').eq(0))
|
@@ -2,15 +2,15 @@
|
|
2
2
|
<% if (@product.images + @product.variant_images).uniq.size > 1 %>
|
3
3
|
<ul id="product-thumbnails" class="thumbnails inline" data-hook>
|
4
4
|
<% @product.images.each do |i| %>
|
5
|
-
<li class='tmb-all
|
6
|
-
<%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)
|
5
|
+
<li class='tmb-all tmb-<%= i.viewable.id %>'>
|
6
|
+
<%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %>
|
7
7
|
</li>
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
<% if @product.has_variants? %>
|
11
11
|
<% @product.variant_images.each do |i| %>
|
12
12
|
<% next if @product.images.include?(i) %>
|
13
|
-
<li class='vtmb
|
13
|
+
<li class='vtmb tmb-<%= i.viewable.id %>'>
|
14
14
|
<%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %>
|
15
15
|
</li>
|
16
16
|
<% end %>
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sean Schofield
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: spree_core
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.0.
|
19
|
+
version: 2.0.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0.
|
26
|
+
version: 2.0.2
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: spree_api
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.
|
33
|
+
version: 2.0.2
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.
|
40
|
+
version: 2.0.2
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: jquery-rails
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: select2-rails
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - '='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - '='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rails
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,23 +83,20 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: deface
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: 0.9.0
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: 0.9.0
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: stringex
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ~>
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ~>
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -126,7 +111,6 @@ dependencies:
|
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: email_spec
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
115
|
- - ~>
|
132
116
|
- !ruby/object:Gem::Version
|
@@ -134,7 +118,6 @@ dependencies:
|
|
134
118
|
type: :development
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
122
|
- - ~>
|
140
123
|
- !ruby/object:Gem::Version
|
@@ -549,30 +532,26 @@ files:
|
|
549
532
|
- vendor/assets/stylesheets/jquery.formalize.css.erb
|
550
533
|
homepage: http://spreecommerce.com
|
551
534
|
licenses: []
|
535
|
+
metadata: {}
|
552
536
|
post_install_message:
|
553
537
|
rdoc_options: []
|
554
538
|
require_paths:
|
555
539
|
- lib
|
556
540
|
required_ruby_version: !ruby/object:Gem::Requirement
|
557
|
-
none: false
|
558
541
|
requirements:
|
559
|
-
- -
|
542
|
+
- - '>='
|
560
543
|
- !ruby/object:Gem::Version
|
561
544
|
version: 1.9.3
|
562
545
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
563
|
-
none: false
|
564
546
|
requirements:
|
565
|
-
- -
|
547
|
+
- - '>='
|
566
548
|
- !ruby/object:Gem::Version
|
567
549
|
version: '0'
|
568
|
-
segments:
|
569
|
-
- 0
|
570
|
-
hash: 1557147495448316497
|
571
550
|
requirements:
|
572
551
|
- none
|
573
552
|
rubyforge_project: spree_frontend
|
574
|
-
rubygems_version:
|
553
|
+
rubygems_version: 2.0.0
|
575
554
|
signing_key:
|
576
|
-
specification_version:
|
555
|
+
specification_version: 4
|
577
556
|
summary: Frontend e-commerce functionality for the Spree project.
|
578
557
|
test_files: []
|