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

Commit ced8836

Browse files
committed
Merge pull request #1619 from OpenBazaar/fixInternationalPrices
Fix international prices
2 parents daa044b + be01a9c commit ced8836

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

css/obBase.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ h1,h2,h3,
202202
line-height: 1.2;
203203
}
204204

205-
h4,h5,h6
205+
h4,h5,h6,
206206
.h4,.h5,.h6 {
207207
margin-bottom: 10px;
208208
line-height: 1;
@@ -3466,7 +3466,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
34663466
}
34673467

34683468
.onboardingIntroDiscover:before {
3469-
background: #252525 url('../imgs/onboarding-discover-callout.png') 100% 0%;
3469+
background: #252525 url('../imgs/onboarding-discover-callout.png') 100% 0;
34703470
background-size: 233px 196px;
34713471
content: " ";
34723472
width: 32px;
@@ -4138,7 +4138,6 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
41384138
}
41394139
41404140
.tooltip:hover:after{
4141-
max-width: 400px;
41424141
background: rgba(37,37,37,.95);
41434142
border-radius: 3px;
41444143
bottom: -32px;

js/templates/itemEdit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h5><%= polyglot.t('Listing') %></h5>
111111
>
112112
</div>
113113
<div class="flexCol-4">
114-
<span class="fieldItem txt-placeholder"><%= polyglot.t('MinimumIs', { amount: ob.userCurrencyCode == "BTC" ? 0.0015 : (window.currentBitcoin * 0.002).toFixed(2) }) %> <span class="ion-help-circled fontSize12 tooltip" data-tooltip="<%= polyglot.t('MinimumPrice') %>"></span></span>
114+
<span class="fieldItem txt-placeholder"><%= polyglot.t('MinimumIs', { amount: ob.userCurrencyCode == "BTC" ? ob.intlNumFormat(0.0015) : ob.intlNumFormat(window.currentBitcoin * 0.002) }) %> <span class="ion-help-circled fontSize12 tooltip" data-tooltip="<%= polyglot.t('MinimumPrice') %>"></span></span>
115115
</div>
116116
</div>
117117
<div class="flexRow custCol-border js-shippingRow">

js/templates/userShort.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</div>
8686
<% if(ob.isModerator){ %>
8787
<div class="pull-right rowTop10 fontSize12 txt-fade">
88-
<%= polyglot.t('ModeratorFee') %> <%= ob.fee.toFixed(2) %>%
88+
<%= polyglot.t('ModeratorFee') %> <%= ob.intlNumFormat(ob.fee, 2) %>%
8989
</div>
9090
<% } %>
9191
</div>

js/views/blockedUsersVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = baseVw.extend({
3232
this.listenTo(this.collection, 'remove', function(md) {
3333
var view;
3434

35-
if (view == __.find(this.subViews, function(subView) {
35+
if (view = __.find(this.subViews, function(subView) { // eslint-disable-line no-cond-assign
3636
return subView.model.get('guid') === md.get('guid');
3737
})) {
3838
self.removeSubView(view);

js/views/buyWizardVw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = baseVw.extend({
7878
this.userModel = this.options.userModel;
7979
this.worldwide = this.options.worldwide;
8080
this.shippingRegions = this.options.shippingRegions;
81-
this.hideMap = true;
81+
//this.hideMap = true;
8282
this.orderID = "";
8383
this.model.set('selectedModerator', "");
8484
this.model.updateAttributes();
@@ -300,7 +300,7 @@ module.exports = baseVw.extend({
300300
},
301301

302302
doesntHaveWallet: function(){
303-
this.hasWallet = false;
303+
//this.hasWallet = false;
304304
this.accNext();
305305
},
306306

@@ -568,7 +568,7 @@ module.exports = baseVw.extend({
568568
this.$el.find('.js-buyWizardSpinner').addClass('hide');
569569
this.orderID = data.order_id;
570570
totalBTCPrice = data.amount - this.partialPaymentAmount;
571-
this.$el.find('.js-buyWizardDetailsTotalBTC').text(totalBTCPrice);
571+
this.$el.find('.js-buyWizardDetailsTotalBTC').text(templateHelpers.intlNumFormat(totalBTCPrice));
572572
this.payURL = data.payment_address;
573573

574574
payHREF = "bitcoin:"+ data.payment_address+"?amount="+totalBTCPrice;

js/views/transactionModalVw.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,11 @@ module.exports = baseVw.extend({
360360
this.$('.js-transactionFeedback').removeClass('bottom0');
361361
},
362362

363+
/*
363364
showRefundOrder: function(){
364365
this.setState("refund");
365366
},
367+
*/
366368

367369
showCompleteForm: function(){
368370
this.$('.js-transactionShowContract').addClass('hide');

0 commit comments

Comments
 (0)