Skip to content

Commit

Permalink
update form
Browse files Browse the repository at this point in the history
  • Loading branch information
leviothan committed Feb 5, 2018
1 parent 34f78c5 commit 716a8c7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions views/js/paybear.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
var code = selectedCoin.code;
that.paymentHeader.classList.remove('P-Payment__header--red');
that.paymentHeaderTitle.textContent = 'Waiting on Payment';
that.paymentHeaderHelper.innerHTML = 'Rate Locked 1 ' + code + ' : ' + options.fiatSign + formatMoney(rate, 2) + ' ' + options.fiatCurrency;
that.paymentHeaderHelper.innerHTML = 'Rate Locked 1 ' + code + ' : ' + options.fiatSign + (rate).toFixed(2) + ' ' + options.fiatCurrency;
that.paymentHeaderHelper.removeAttribute('style');

// timer
Expand Down Expand Up @@ -876,16 +876,6 @@
return selectedText;
}

function formatMoney(n, c, d, t) {
var c = isNaN(c = Math.abs(c)) ? 2 : c,
d = d == undefined ? "." : d,
t = t == undefined ? "," : t,
s = n < 0 ? "-" : "",
i = String(parseInt(n = Math.abs(Number(n) || 0).toFixed(c))),
j = (j = i.length) > 3 ? j % 3 : 0;
return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
}

function paybearResizeFont(address) {
var addressContainerWidth = document.querySelector('.P-Payment__address').clientWidth;
var addressCode = document.querySelector('.P-Payment__address code');
Expand Down

0 comments on commit 716a8c7

Please sign in to comment.