mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-26 16:33:21 +08:00
fix sending money
This commit is contained in:
parent
19d5daf5b8
commit
faab21bccf
2 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,7 @@ if (_post('send') == 'balance') {
|
||||||
if ($user['balance'] < $balance) {
|
if ($user['balance'] < $balance) {
|
||||||
r2(U . 'home', 'd', Lang::T('insufficient balance'));
|
r2(U . 'home', 'd', Lang::T('insufficient balance'));
|
||||||
}
|
}
|
||||||
if (intval($config['minimum_transfer']) >= intval($balance)) {
|
if (!empty($config['minimum_transfer']) && intval($balance) <= intval($config['minimum_transfer'])) {
|
||||||
r2(U . 'home', 'd', Lang::T('Minimum Transfer') . ' ' . Lang::moneyFormat($config['minimum_transfer']));
|
r2(U . 'home', 'd', Lang::T('Minimum Transfer') . ' ' . Lang::moneyFormat($config['minimum_transfer']));
|
||||||
}
|
}
|
||||||
if ($user['username'] == $target['username']) {
|
if ($user['username'] == $target['username']) {
|
||||||
|
|
|
@ -162,7 +162,9 @@
|
||||||
<script>
|
<script>
|
||||||
function askConfirm(){
|
function askConfirm(){
|
||||||
if(confirm('{Lang::T('Send your balance?')}')){
|
if(confirm('{Lang::T('Send your balance?')}')){
|
||||||
|
setTimeout(() => {
|
||||||
document.getElementById('sendBtn').setAttribute('disabled', '');
|
document.getElementById('sendBtn').setAttribute('disabled', '');
|
||||||
|
}, 1000);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue