Compare commits
No commits in common. "f6a48e67f2077a5c5b02ab0866af18a7b4eebea8" and "28a876cc36fe373232ddec4d474e6ea23d729073" have entirely different histories.
f6a48e67f2
...
28a876cc36
32
kaform.js
32
kaform.js
|
@ -327,14 +327,21 @@ function downloadDocument1(){
|
||||||
|
|
||||||
function downloadDocument(mail)
|
function downloadDocument(mail)
|
||||||
{
|
{
|
||||||
if (!check_field("projectid", "Bitte gib einen Projektnamen/Zweck der Reise an!"))
|
/* if (!check_field("nickname", "Bitte gib deinen Nicknamen an!"))
|
||||||
return;
|
return;
|
||||||
|
*/ if (!check_field("realname", "Bitte gib deinen Realnamen an!"))
|
||||||
if (!check_field("realname", "Bitte gib deinen Realnamen an!"))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!check_field("email", "Bitte gib deinen E-Mail-Adresse an!"))
|
if (!check_field("email", "Bitte gib deinen E-Mail-Adresse an!"))
|
||||||
return;
|
return;
|
||||||
|
if (!check_field("projectid", "Bitte gib einen Projektnamen/Zweck der Reise an!"))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (countRows()==0){
|
||||||
|
document.getElementById("a_description").focus();
|
||||||
|
showAlert("Bitte füge mind. eine Auslage hinzu!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (banktype == "bank-eu"){
|
if (banktype == "bank-eu"){
|
||||||
iban = document.getElementById('iban');
|
iban = document.getElementById('iban');
|
||||||
|
@ -362,12 +369,11 @@ function downloadDocument(mail)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (countRows()==0){
|
if (!document.getElementById("agree").checked){
|
||||||
document.getElementById("a_description").focus();
|
document.getElementById("agree").focus();
|
||||||
showAlert("Bitte füge mind. eine Auslage hinzu!");
|
showAlert("Bitte bestätige, dass du alle Angaben nach bestem Wissen und Gewissen gemacht hast!");
|
||||||
return;
|
return;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
if (mail){
|
if (mail){
|
||||||
if (!isMailable()){
|
if (!isMailable()){
|
||||||
|
@ -381,20 +387,12 @@ function downloadDocument(mail)
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
document.getElementById('sendmail').value="no";
|
document.getElementById('sendmail').value="no";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementById('banktype').value=banktype;
|
document.getElementById('banktype').value=banktype;
|
||||||
document.getElementById("theform").submit();
|
document.getElementById("theform").submit();
|
||||||
|
|
||||||
if (!document.getElementById("agree").checked){
|
|
||||||
document.getElementById("agree").focus();
|
|
||||||
showAlert("Bitte bestätige, dass du alle Angaben nach bestem Wissen und Gewissen gemacht hast!");
|
|
||||||
return;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue