Update content of files

This commit is contained in:
GitHub Action 2023-04-21 17:31:39 +00:00
parent 5f3eade424
commit cb19dd4034

View file

@ -764,8 +764,8 @@ var Auction = {
var mult = Aj.state.offerFeeMult; var mult = Aj.state.offerFeeMult;
var fee = Math.ceil(amount * mult); var fee = Math.ceil(amount * mult);
var fee_val = Math.max(Aj.state.offerFeeMin, Math.min(fee, Aj.state.offerFeeMax)); var fee_val = Math.max(Aj.state.offerFeeMin, Math.min(fee, Aj.state.offerFeeMax));
Aj.state.offerFee = Main.wrapTonAmount(fee_val); Aj.state.offerFee = fee_val;
$('.js-amount_fee', Aj.state.$makeOfferForm).html(Aj.state.offerFee); $('.js-amount_fee', Aj.state.$makeOfferForm).html(Main.wrapTonAmount(fee_val));
}; };
openPopup(Aj.state.$makeOfferPopup, { openPopup(Aj.state.$makeOfferPopup, {
onOpen: function() { onOpen: function() {
@ -802,13 +802,13 @@ var Auction = {
}, },
title: l('WEB_POPUP_QR_OFFER_HEADER'), title: l('WEB_POPUP_QR_OFFER_HEADER'),
description: l('WEB_POPUP_QR_OFFER_TEXT', { description: l('WEB_POPUP_QR_OFFER_TEXT', {
amount: '<span class="icon-before icon-ton-text js-amount_fee">' + Aj.state.offerFee + '</span>' amount: '<span class="icon-before icon-ton-text js-amount_fee">' + Main.wrapTonAmount(Aj.state.offerFee) + '</span>'
}), }),
qr_label: item_title, qr_label: item_title,
tk_label: l('WEB_POPUP_QR_OFFER_TK_BUTTON'), tk_label: l('WEB_POPUP_QR_OFFER_TK_BUTTON'),
terms_label: l('WEB_POPUP_QR_PROCEED_TERMS'), terms_label: l('WEB_POPUP_QR_PROCEED_TERMS'),
onDataUpdate: function(data) { onDataUpdate: function(data) {
$('.js-amount_fee', this).html(data.fee); $('.js-amount_fee', this).html(Main.wrapTonAmount(data.fee));
}, },
onConfirm: function(by_server) { onConfirm: function(by_server) {
if (by_server) { if (by_server) {
@ -1013,7 +1013,7 @@ var Assets = {
}, },
title: l('WEB_POPUP_QR_BOT_USERNAME_HEADER'), title: l('WEB_POPUP_QR_BOT_USERNAME_HEADER'),
description: l('WEB_POPUP_QR_BOT_USERNAME_TEXT', { description: l('WEB_POPUP_QR_BOT_USERNAME_TEXT', {
amount: '<span class="icon-before icon-ton-text js-amount_fee">' + Aj.state.botUsernameFee + '</span>' amount: '<span class="icon-before icon-ton-text js-amount_fee">' + Main.wrapTonAmount(Aj.state.botUsernameFee) + '</span>'
}), }),
qr_label: '@' + Aj.state.botUsername, qr_label: '@' + Aj.state.botUsername,
tk_label: l('WEB_POPUP_QR_BOT_USERNAME_TK_BUTTON'), tk_label: l('WEB_POPUP_QR_BOT_USERNAME_TK_BUTTON'),
@ -1850,7 +1850,7 @@ var Premium = {
}, },
title: l('WEB_POPUP_QR_PREMIUM_HEADER'), title: l('WEB_POPUP_QR_PREMIUM_HEADER'),
description: l('WEB_POPUP_QR_PREMIUM_TEXT', { description: l('WEB_POPUP_QR_PREMIUM_TEXT', {
amount: '<span class="icon-before icon-ton-text js-amount_fee">' + Aj.state.giftPrice + '</span>' amount: '<span class="icon-before icon-ton-text js-amount_fee">' + Main.wrapTonAmount(Aj.state.giftPrice) + '</span>'
}), }),
qr_label: item_title, qr_label: item_title,
tk_label: l('WEB_POPUP_QR_PREMIUM_TK_BUTTON'), tk_label: l('WEB_POPUP_QR_PREMIUM_TK_BUTTON'),