Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit d71b7f8

Browse files
committed
Add other to transaction modal.
1 parent 713139d commit d71b7f8

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

js/templates/buyWizard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
490490
<div class="flexCol-7 custCol-border">
491491
<input type="text"
492492
name="new_ship_to_other"
493-
class="fieldItem custCol-text js-buyWizardPostalInput"
493+
class="fieldItem custCol-text"
494494
placeholder="<%= polyglot.t('ShipToOtherPlaceholderShort') %>"
495495
id="buyWizardOther"/>
496496
</div>

js/templates/transactionModal.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,11 @@ <h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
770770
</div>
771771
<div class="txt-unleaded pull-left">
772772
<div class="fontSize13 lineHeight16">
773-
<%- ob.buyer_order.order.shipping.ship_to %>, <br />
774-
<%- ob.buyer_order.order.shipping.address %><br />
775-
<%- ob.buyer_order.order.shipping.city %>, <%- ob.buyer_order.order.shipping.state %> <%- ob.buyer_order.order.shipping.postal_code %><br />
776-
<%= polyglot.t('countries.' + ob.buyer_order.order.shipping.country) %>
773+
<div><%- ob.buyer_order.order.shipping.ship_to %></div>
774+
<div><%- ob.buyer_order.order.shipping.address %></div>
775+
<div><%- ob.buyer_order.order.shipping.city %> <%- ob.buyer_order.order.shipping.state %> <%- ob.buyer_order.order.shipping.postal_code %></div>
776+
<div><%- ob.buyer_order.order.shipping.other %></div>
777+
<div><%= polyglot.t('countries.' + ob.buyer_order.order.shipping.country) %></div>
777778
</div>
778779
</div>
779780
</div>

js/views/settingsVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ module.exports = pageVw.extend({
970970
newAddress.displayCountry = this.$('#settingsShipToCountry option:selected').data('name');
971971

972972
//if form is partially filled out throw error
973-
if (newAddress.name || newAddress.street || newAddress.city || newAddress.state || newAddress.postal_code) {
973+
if (newAddress.name || newAddress.street || newAddress.city || newAddress.state || newAddress.postal_code || newAddress.other) {
974974
if (!newAddress.name) {
975975
this.$('#settingsShipToName').addClass('invalid');
976976
app.simpleMessageModal.open({

js/views/transactionsVw.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ module.exports = pageVw.extend({
429429
} else {
430430
app.simpleMessageModal.open({
431431
title: window.polyglot.t('errorMessages.noData')
432-
});
432+
});
433433
}
434434
});
435435
},
@@ -459,7 +459,7 @@ module.exports = pageVw.extend({
459459
dataObject.quantity = data.buyer_order.order.quantity;
460460
if (data.buyer_order.order.shipping){
461461
var dShipping = data.buyer_order.order.shipping;
462-
dataObject.shipping_address = dShipping.ship_to + " " + dShipping.address +", " + dShipping.city + ", " + dShipping.state + ", " + dShipping.postal_code + ", " + dShipping.country;
462+
dataObject.shipping_address = dShipping.ship_to + " " + dShipping.address +", " + dShipping.city + ", " + dShipping.state + ", " + dShipping.postal_code + ", " + dShipping.order + ", " + dShipping.country;
463463
}
464464
dataObject.payment_amount = dPayment.amount;
465465
dataObject.payment_address = dPayment.address;
@@ -482,7 +482,7 @@ module.exports = pageVw.extend({
482482
if (data.vendor_offer.policy){
483483
dataObject.return_policy = data.vendor_offer.policy.returns;
484484
}
485-
485+
486486
this.currentExportData.push(dataObject);
487487
});
488488

@@ -491,11 +491,11 @@ module.exports = pageVw.extend({
491491

492492
openOrderModal: function(options){
493493
app.loadingModal.open({ insideApp: true });
494-
494+
495495
if (options.status == "open"){
496496
options.status = 4;
497497
}
498-
498+
499499
this.orderModalView && this.orderModalView.remove();
500500
this.orderModalView = new transactionModalVw({
501501
orderID: options.orderID,
@@ -522,4 +522,4 @@ module.exports = pageVw.extend({
522522

523523
this.registerChild(this.orderModalView);
524524
}
525-
});
525+
});

0 commit comments

Comments
 (0)