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

Commit fa35429

Browse files
committed
move setTotalPrice to modNext
1 parent c8ebd97 commit fa35429

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/views/buyWizardVw.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = baseVw.extend({
3636
'click .js-closeBuyWizardModal': 'closeWizard',
3737
'click .js-buyWizardNewAddressBtn': 'createNewAddress',
3838
'click .js-buyWizardModeratorRadio': 'modSelected',
39-
'click .js-buyWizardModNext': 'accNext',
39+
'click .js-buyWizardModNext': 'modNext',
4040
'click .js-buyWizardModBack': 'modBack',
4141
'click .js-buyWizardReturnNext': 'returnNext',
4242
'click .js-buyWizardAddressBack': 'addressPrev',
@@ -265,6 +265,11 @@ module.exports = baseVw.extend({
265265
this.accGoToID("#BuyWizardPaymentType");
266266
},
267267

268+
modNext: function(){
269+
this.accNext();
270+
this.setTotalPrice(); //in case it isn't set yet
271+
},
272+
268273
modBack: function(){
269274
this.accGoToID('#BuyWizardBitcoinWallet');
270275
},
@@ -437,7 +442,6 @@ module.exports = baseVw.extend({
437442
"use strict";
438443
this.accNext();
439444
this.hideMaps();
440-
this.setTotalPrice(); //in case it isn't set yet
441445
},
442446

443447
sendPurchase: function(){

0 commit comments

Comments
 (0)