Verbesserungen i80n, Bugfixes, uvm

This commit is contained in:
2026-03-28 14:04:01 +01:00
parent 7729aba416
commit e7adae9762
18 changed files with 202 additions and 65 deletions

View File

@@ -5,12 +5,36 @@ $(function() {
$(this).val(selectedValue);
}
});
function updateMaxlengths() {
const passportType = $('#passport_type').val();
let maxLength;
switch (passportType) {
case 'd':
maxLength = 17;
break;
case 'k':
maxLength = 25;
break;
default:
maxLength = 17;
}
$('#firstname, #lastname, #location').attr('maxlength', maxLength);
}
updateMaxlengths();
$('#passport_type, #district_region').on('change', function() {
updateMaxlengths();
});
});
function vorantragAbschicken(){
let data = {};
data.event = $('#eventSelect').val();
data.district_region = $('#district_region').val();
data.passport_type = $('#passport_type').val();
data.mail = $('#mail').val();
data.first_name = $('#firstname').val();
@@ -36,7 +60,7 @@ function vorantragAbschicken(){
}
},
error:function(r, a, e){
alert(e);
alert(i18n.common.error_occurred + e);
}
});