caboose-store 0.0.18 → 0.0.19
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
|
+
ZDIzZWVlZjgwMDI0ODg4ZmU2M2YyYmZkNzQxZmI4ZTMzMGExNjEzYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjIzZjJmMWZmMmY1ODIxMjVlZjM2NWZhM2M1NDdiMTM0OTMyODc0Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Mjc1N2VjNmRiOWVmZGRlMGQ3MGNhNzA0NGNkNDAxMTIyZWQ0ZmRiN2RmNmQ4
|
10
|
+
NDhkOTA5Nzk0OTA2NTE4Mzg2OTY5MjdmMzk5YTA2ZDY2ZGVkZGRhNWRmMGZm
|
11
|
+
YmE2YTAyNTkyZTUxY2U1Yzk2NjEwYmM1M2YyODNjODUzNTE1MjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGEyNzgwZmNhNDM3MzUwYWU5YTc5YjFjNzc0MTNmOGJjNmNkMDFlNjQ4NmZh
|
14
|
+
N2JiNTU3MzgzYzdlZGFkZDMwMjM2ZWFkOGY4YjhmNmRjZTVkOWM1MTZmMzA5
|
15
|
+
MTFlNjVhMTJjMWQwZWQyNmRiODExMTNiOWIzM2U0ZjZjM2NjNzg=
|
@@ -295,7 +295,7 @@ 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
|
298
|
+
@highlight_variant_id = params[:highlight] ? params[:highlight].to_i : nil
|
299
299
|
|
300
300
|
if @product.options.nil? || @product.options.count == 0
|
301
301
|
render 'caboose_store/products/admin_edit_variants_single', :layout => 'caboose/admin'
|
@@ -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 <% if @highlight_variant_id && v.id == @highlight_variant_id %>class='highlight'<% end %>>
|
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 %>
|
@@ -70,6 +70,12 @@ v = @variant
|
|
70
70
|
|
71
71
|
<%= render :partial => 'caboose_store/products/admin_footer' %>
|
72
72
|
|
73
|
+
<% content_for :caboose_css do %>
|
74
|
+
<style type='text/css'>
|
75
|
+
tr.highlight td { background: #ffff99 }
|
76
|
+
</style>
|
77
|
+
<% end %>
|
78
|
+
|
73
79
|
<% content_for :caboose_js do %>
|
74
80
|
<script type='text/javascript'>
|
75
81
|
|
@@ -103,7 +109,7 @@ $(document).ready(function() {
|
|
103
109
|
<% end %>
|
104
110
|
|
105
111
|
<% if @highlight_variant_id %>
|
106
|
-
$("#variant_<%= @highlight_variant_id %>_row").
|
112
|
+
$("#variant_<%= @highlight_variant_id %>_row").highlight();
|
107
113
|
<% end %>
|
108
114
|
});
|
109
115
|
|