caboose-store 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MzIxYTQ4Nzg1MWM5YmRhZDBiYmZlNjZjNjJhNmNjNWQwNjVlZjdlYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZmRiZDMyZDVkZTAwMTI2YjkyZTk0YjkyNDIwMmQzMjNiNzFkOWRjOQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDViNDA5NWI0NjVhZjRlM2VjMTI5OTM0YTdiOGJjM2VhYmExYmI4ZDc5YjU5
|
|
10
|
+
NGE0ZmZjN2RkNTQ2Y2Q0MDY2M2JhYWQ3YzhhZDUwYzZmMmEyY2RhOGI3YTFk
|
|
11
|
+
NTU0OWM5OWE4ZTY1OTk5YjFhNjMxZWY1NTNhNjk0YTFhNDNlMWY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YWNkOTA3YWVhNGMyMWE2NjExOWY1M2Q5NTk2ODc2YmQ1ZTU4OTI5YzYzNWRj
|
|
14
|
+
YWY0MGNkMTI3YjlmOGRmOWJjMDMyYmI0ZmYxNzdkNDA1ZmM2MTE3ZGU4OThk
|
|
15
|
+
M2Y0M2E5ZWE2ZmQ5MjA3ZTEwYzBiMWQ3MjM2Y2YyOTJlYmRmY2E=
|
|
@@ -295,6 +295,8 @@ module CabooseStore
|
|
|
295
295
|
session['variant_cols'] = self.default_variant_cols if session['variant_cols'].nil?
|
|
296
296
|
@cols = session['variant_cols']
|
|
297
297
|
|
|
298
|
+
@highlight_variant_id = params[:highlight] ? params[:highlight] : nil
|
|
299
|
+
|
|
298
300
|
if @product.options.nil? || @product.options.count == 0
|
|
299
301
|
render 'caboose_store/products/admin_edit_variants_single', :layout => 'caboose/admin'
|
|
300
302
|
else
|
|
@@ -57,7 +57,7 @@ captured = @order.financial_status == 'captured'
|
|
|
57
57
|
<% if li.variant.nil? || li.variant.product.nil? %>
|
|
58
58
|
<%= li.variant_sku %>
|
|
59
59
|
<% else %>
|
|
60
|
-
<a href='/admin/products/<%= li.variant.product.id %>/
|
|
60
|
+
<a href='/admin/products/<%= li.variant.product.id %>/variants?highlight=<%= li.variant.id %>'><%= li.variant.product.title %></a><br />
|
|
61
61
|
<%= li.variant.sku %><br />
|
|
62
62
|
<%= li.variant.title %>
|
|
63
63
|
<% end %>
|
|
@@ -43,7 +43,7 @@ v = @variant
|
|
|
43
43
|
</tr>
|
|
44
44
|
<% Caboose.log p.variants.where(:status => ['Active', 'Inactive']).first %>
|
|
45
45
|
<% p.variants.where(:status => ['Active', 'Inactive']).each do |v| %>
|
|
46
|
-
<tr>
|
|
46
|
+
<tr id='variant_<%= v.id %>_row'>
|
|
47
47
|
<% if @cols['option1' ] && p.option1 %><td><div id='variant_<%= v.id %>_option1' ></div></td><% end %>
|
|
48
48
|
<% if @cols['option2' ] && p.option2 %><td><div id='variant_<%= v.id %>_option2' ></div></td><% end %>
|
|
49
49
|
<% if @cols['option3' ] && p.option3 %><td><div id='variant_<%= v.id %>_option3' ></div></td><% end %>
|
|
@@ -101,6 +101,10 @@ $(document).ready(function() {
|
|
|
101
101
|
]
|
|
102
102
|
});
|
|
103
103
|
<% end %>
|
|
104
|
+
|
|
105
|
+
<% if @highlight_variant_id %>
|
|
106
|
+
$("#variant_<%= @highlight_variant_id %>_row").toggle("highlight");
|
|
107
|
+
<% end %>
|
|
104
108
|
});
|
|
105
109
|
|
|
106
110
|
var modal = false;
|