*more templates moved to Twig

*some not important small changes
This commit is contained in:
slawkens
2017-09-08 07:36:33 +02:00
parent e230949edd
commit 0e185c8bcf
5 changed files with 133 additions and 88 deletions

View File

@@ -9,7 +9,7 @@ function checkName()
eventId = 0;
}
if(document.getElementById("newcharname").value=="")
if(document.getElementById("name").value=="")
{
document.getElementById("name_check").innerHTML = '<b><font color="red">Please enter new character name.</font></b>';
return;
@@ -28,8 +28,8 @@ function checkName()
}
}
var newcharname = document.getElementById("newcharname").value;
$.get("tools/validate.php", { name: newcharname, uid: Math.random() },
var name = document.getElementById("name").value;
$.get("tools/validate.php", { name: name, uid: Math.random() },
function(data){
document.getElementById("name_check").innerHTML = data;
lastSend = timeNow;