mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-26 08:27:03 +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) {
|
||||
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']));
|
||||
}
|
||||
if ($user['username'] == $target['username']) {
|
||||
|
|
|
@ -162,7 +162,9 @@
|
|||
<script>
|
||||
function askConfirm(){
|
||||
if(confirm('{Lang::T('Send your balance?')}')){
|
||||
document.getElementById('sendBtn').setAttribute('disabled', '');
|
||||
setTimeout(() => {
|
||||
document.getElementById('sendBtn').setAttribute('disabled', '');
|
||||
}, 1000);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue