forked from s3lph/matemat
fix: deposit js error
This commit is contained in:
parent
b9d556ce71
commit
64f682fa11
2 changed files with 4 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
||||||
|
|
||||||
__version__ = '0.4.8'
|
__version__ = '0.4.9'
|
||||||
|
|
|
@ -81,16 +81,16 @@ deposit_key = (k) => {
|
||||||
if (k == 'ok') {
|
if (k == 'ok') {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case Mode.Deposit:
|
case Mode.Deposit:
|
||||||
window.location.href = '/deposit?n=' + parseInt(deposit) + append_query_string;
|
window.location.href = '/deposit?n=' + parseInt(deposit);
|
||||||
break;
|
break;
|
||||||
case Mode.Buy:
|
case Mode.Buy:
|
||||||
window.location.href = '/buy?pid=' + product_id + '&price=' + parseInt(deposit) + append_query_string;
|
window.location.href = '/buy?pid=' + product_id + '&price=' + parseInt(deposit);
|
||||||
break;
|
break;
|
||||||
case Mode.Transfer:
|
case Mode.Transfer:
|
||||||
if (target_user == null) {
|
if (target_user == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.location.href = '/transfer?target=' + target_user + '&n=' + parseInt(deposit) + append_query_string;
|
window.location.href = '/transfer?target=' + target_user + '&n=' + parseInt(deposit);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
mode = Mode.Deposit;
|
mode = Mode.Deposit;
|
||||||
|
|
Loading…
Reference in a new issue