move setting of email address to callback
This commit is contained in:
parent
963a543d8c
commit
9020790cf8
|
|
@ -18,9 +18,6 @@ function validate(what, text) {
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
var username = $("#username").html();
|
var username = $("#username").html();
|
||||||
if (username != "") {
|
|
||||||
$("#email").val(username);
|
|
||||||
}
|
|
||||||
$("#quantity_exclamation").hide();
|
$("#quantity_exclamation").hide();
|
||||||
$("#email_exclamation").hide();
|
$("#email_exclamation").hide();
|
||||||
|
|
||||||
|
|
@ -112,6 +109,9 @@ $(document).ready(function () {
|
||||||
|
|
||||||
function callback() {
|
function callback() {
|
||||||
$('#quantity').focus().select();
|
$('#quantity').focus().select();
|
||||||
|
if (username != "") {
|
||||||
|
$("#email").val(username);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(callback, 10);
|
setTimeout(callback, 10);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue