move setting of email address to callback

This commit is contained in:
Joerg Lehmann 2021-04-06 20:35:45 +02:00
parent 963a543d8c
commit 9020790cf8
1 changed files with 3 additions and 3 deletions

View File

@ -18,9 +18,6 @@ function validate(what, text) {
$(document).ready(function () {
var username = $("#username").html();
if (username != "") {
$("#email").val(username);
}
$("#quantity_exclamation").hide();
$("#email_exclamation").hide();
@ -112,6 +109,9 @@ $(document).ready(function () {
function callback() {
$('#quantity').focus().select();
if (username != "") {
$("#email").val(username);
}
}
setTimeout(callback, 10);