You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
461 B
18 lines
461 B
function updateCurrencyValue(element, val) {
|
|
$.ajax({
|
|
url: `/snippet/formatCurrencyAmount/${val}`
|
|
|
|
}).done(function(result) {
|
|
element.html(result);
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
});
|
|
}
|
|
|
|
function updateFeeRateValue(element, val, digits) {
|
|
$.ajax({
|
|
url: `/api/utils/formatCurrencyAmountInSmallestUnits/${val},${digits}`
|
|
|
|
}).done(function(result) {
|
|
element.html(`<span>${result.val} <small>${result.currencyUnit}/vB</small></span>`);
|
|
});
|
|
}
|