forked from rDrama/rDrama
fix NaN on gifting on mobile
parent
dff5bcefcf
commit
af66453f2b
|
@ -31,7 +31,7 @@ function transferCoins(mobile=false) {
|
|||
|
||||
this.disabled = true;
|
||||
|
||||
let amount = parseInt(document.getElementById("coin-transfer-amount").value);
|
||||
let amount = parseInt(document.getElementById(mobile ? "coin-transfer-amount-mobile" : "coin-transfer-amount").value);
|
||||
let transferred = amount - Math.ceil(amount*TRANSFER_TAX);
|
||||
let username = document.getElementById('username').innerHTML;
|
||||
|
||||
|
@ -59,7 +59,7 @@ function transferBux(mobile=false) {
|
|||
|
||||
this.disabled = true;
|
||||
|
||||
let amount = parseInt(document.getElementById("bux-transfer-amount").value);
|
||||
let amount = parseInt(document.getElementById(mobile ? "bux-transfer-amount-mobile" : "bux-transfer-amount").value);
|
||||
let username = document.getElementById('username').innerHTML
|
||||
|
||||
post_toast_callback(`/@${username}/transfer_bux`,
|
||||
|
|
|
@ -28,7 +28,7 @@ set CACHE_VER = {
|
|||
'js/search.js': 4000,
|
||||
'js/submit.js': 4000,
|
||||
'js/userpage.js': 4000,
|
||||
'js/userpage_v.js': 4001,
|
||||
'js/userpage_v.js': 4002,
|
||||
'js/lozad.js': 4000,
|
||||
'js/sort_table.js': 4001,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue