solidus_subscription_boxes 0.0.7 → 0.0.8
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,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 740020abd07abef6f2e96111c793d59a2601ef43
|
4
|
+
data.tar.gz: 8ef8dc734f71d13fa32a433eeff6eaa34b593978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 167f1577782a1a3f3197e162496885bbac61be3d3dbd01598522bdd32023ea430eff220f0d6ea9a2f3535493bc4e486558c5c5b3d11885981fa84a1de608bdaf
|
7
|
+
data.tar.gz: 3ce9730257a7caf7b392269a0abfe96e2958845e2effbfb9f2614744f58d99899acc53c61c2bc65caa291baa1402712f749794e8cce35bd438c3a559d8d33b68
|
@@ -32,12 +32,12 @@ $('.box-controls i').click(function(event) {
|
|
32
32
|
}
|
33
33
|
|
34
34
|
if( $('body.get_started').length > 0 ) {
|
35
|
-
var submitButtonText = "
|
35
|
+
var submitButtonText = "Buy Now";
|
36
36
|
} else {
|
37
37
|
var submitButtonText = "Update My Order";
|
38
38
|
}
|
39
39
|
|
40
|
-
if( numberOfMeals() >=
|
40
|
+
if( numberOfMeals() >= 1 ) {
|
41
41
|
$('input[type=submit].meal-update').removeAttr('disabled');
|
42
42
|
$('input[type=submit].meal-update').attr("value",submitButtonText);
|
43
43
|
} else {
|
@@ -45,7 +45,7 @@ $('.box-controls i').click(function(event) {
|
|
45
45
|
$('input[type=submit].meal-update').attr("value","Choose " + (Math.max(3 - numberOfMeals(), 0)).toString() + " More");
|
46
46
|
}
|
47
47
|
|
48
|
-
$('.number_more_meals').text(
|
48
|
+
$('.number_more_meals').text(1 - numberOfMeals());
|
49
49
|
});
|
50
50
|
|
51
51
|
$(document).ajaxSuccess(function( event, xhr, settings ) {
|
@@ -11,6 +11,8 @@ module Spree
|
|
11
11
|
|
12
12
|
private
|
13
13
|
def set_box_preference
|
14
|
+
@order.line_items.each { |line_item| @order.contents.remove_line_item(line_item) }
|
15
|
+
@order.reload
|
14
16
|
if params[:box_preference_attributes]
|
15
17
|
params[:box_preference_attributes].permit!
|
16
18
|
@order.update_attributes(box_preference_attributes: params[:box_preference_attributes].to_hash)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_subscription_boxes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus
|