mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-16 10:44:55 +02:00
Suggest account number option
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
$('#password2').blur(function() {
|
||||
checkPassword();
|
||||
});
|
||||
$('#SuggestAccountNumber a').click(function (event) {
|
||||
generateAccountNumber(event);
|
||||
});
|
||||
});
|
||||
|
||||
function updateFlag()
|
||||
@@ -192,4 +195,18 @@
|
||||
|
||||
lastSend = timeNow;
|
||||
}
|
||||
|
||||
function generateAccountNumber(event)
|
||||
{
|
||||
event.preventDefault();
|
||||
$.getJSON("tools/generate_account_number.php", { uid: Math.random() },
|
||||
function(data){
|
||||
if(data.hasOwnProperty('success')) {
|
||||
$('#account_input').val(data.success);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
setTimeout(checkAccount, 1000);
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user