caboose-cms 0.5.152 → 0.5.153
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/caboose/admin_edit_order.js +30 -3
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWNjNjk3MjIzZDk4YTg4ZmExYjA5YjgwMWExYTFmOWQ4NzZiYzY2MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzU5ODNlNTViNGYyMDRiNTg2NGI0MzU0YzE1NjI4N2MxMWNiYTQ0Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjcyYmU1ZGFhYTI5NjUyZWM4NWZiOTE3ODE4ZDU2ZWIwMzUzMDUzOGQ2ZWEy
|
10
|
+
MTYyZDg5ZmU3ZTEwYzhiOWI5ZGVjNzUyOWUyZGFjOWYzYzFmMTY0NGM0Yzhm
|
11
|
+
YzlkNjIxNDRiOTg0NTc1NTBlYTAwZDE3OTNiNDZjZjcyZjIzNGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzZlYTQ3NjI4ZjFlZGMyZWIzMjFmMjY4ZDJkZWMzNDNkOWJmZmIzNWJiODM4
|
14
|
+
OTkzNzZhZThjZDU3OWM0Yjg0YmQzY2FiZGViZDkzYzcxMTA2NzlkM2Q3OWNj
|
15
|
+
MzE0YTU4OWJkZTIwMTEzYjRkMjg5ZDBmYTllYTZlMGUwM2VhOTI=
|
@@ -463,8 +463,12 @@ OrderController.prototype = {
|
|
463
463
|
.append($('<div/>').attr('id', 'orderpackage_' + op.id + '_tracking_number'))
|
464
464
|
.append($('<div/>').attr('id', 'orderpackage_' + op.id + '_total'))
|
465
465
|
);
|
466
|
-
}
|
467
|
-
tr.append($('<td/>')
|
466
|
+
}
|
467
|
+
tr.append($('<td/>')
|
468
|
+
.append(that.line_item_link(li))
|
469
|
+
.append(that.gift_options(li))
|
470
|
+
.append($('<div/>').attr('id', 'line_item_' + li.id + '_message'))
|
471
|
+
);
|
468
472
|
tr.append($('<td/>').append($('<div/>').attr('id', 'lineitem_' + li.id + '_status')))
|
469
473
|
tr.append($('<td/>').attr('align', 'right').html(curr(li.unit_price)));
|
470
474
|
tr.append($('<td/>').attr('align', 'right').append($('<div/>').attr('id', 'lineitem_' + li.id + '_quantity')));
|
@@ -497,6 +501,25 @@ OrderController.prototype = {
|
|
497
501
|
});
|
498
502
|
},
|
499
503
|
|
504
|
+
gift_options: function(li)
|
505
|
+
{
|
506
|
+
var div = $('<div/>');
|
507
|
+
if (li.is_gift)
|
508
|
+
{
|
509
|
+
div.append($('<ul/>').addClass('gift_options')
|
510
|
+
.append($('<li/>').html("This item is a gift."))
|
511
|
+
.append($('<li/>').html("Gift wrap? " + (li.gift_wrap ? 'Yes' : 'No')))
|
512
|
+
.append($('<li/>').html("Hide prices? " + (li.hide_prices ? 'Yes' : 'No')))
|
513
|
+
.append($('<li/>').html("Gift message: " + (li.gift_message.length > 0 ? li.gift_message : '[Empty]')))
|
514
|
+
);
|
515
|
+
}
|
516
|
+
else
|
517
|
+
{
|
518
|
+
div.append($('<p/>').html("This item is not a gift."));
|
519
|
+
}
|
520
|
+
return div;
|
521
|
+
},
|
522
|
+
|
500
523
|
line_item_link: function(li)
|
501
524
|
{
|
502
525
|
var that = this;
|
@@ -588,7 +611,11 @@ OrderController.prototype = {
|
|
588
611
|
|
589
612
|
var tr = $('<tr/>');
|
590
613
|
tr.append($('<td/>').append(div));
|
591
|
-
tr.append($('<td/>')
|
614
|
+
tr.append($('<td/>')
|
615
|
+
.append(that.line_item_link(li))
|
616
|
+
.append(that.gift_options(li))
|
617
|
+
.append($('<div/>').attr('id', 'line_item_' + li.id + '_message'))
|
618
|
+
);
|
592
619
|
tr.append($('<td/>').append($('<div/>').attr('id', 'lineitem_' + li.id + '_status')))
|
593
620
|
tr.append($('<td/>').attr('align', 'right').html(curr(li.unit_price)));
|
594
621
|
tr.append($('<td/>').attr('align', 'right').append($('<div/>').attr('id', 'lineitem_' + li.id + '_quantity')));
|
data/lib/caboose/version.rb
CHANGED