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)
|
||||
{
|
||||
if (!check_field("projectid", "Bitte gib einen Projektnamen/Zweck der Reise an!"))
|
||||
/* if (!check_field("nickname", "Bitte gib deinen Nicknamen an!"))
|
||||
return;
|
||||
|
||||
if (!check_field("realname", "Bitte gib deinen Realnamen an!"))
|
||||
*/ if (!check_field("realname", "Bitte gib deinen Realnamen an!"))
|
||||
return;
|
||||
|
||||
if (!check_field("email", "Bitte gib deinen E-Mail-Adresse an!"))
|
||||
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"){
|
||||
iban = document.getElementById('iban');
|
||||
|
@ -362,12 +369,11 @@ function downloadDocument(mail)
|
|||
}
|
||||
|
||||
|
||||
if (countRows()==0){
|
||||
document.getElementById("a_description").focus();
|
||||
showAlert("Bitte füge mind. eine Auslage hinzu!");
|
||||
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;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
if (mail){
|
||||
if (!isMailable()){
|
||||
|
@ -381,20 +387,12 @@ function downloadDocument(mail)
|
|||
}
|
||||
else{
|
||||
document.getElementById('sendmail').value="no";
|
||||
|
||||
}
|
||||
|
||||
|
||||
document.getElementById('banktype').value=banktype;
|
||||
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