Verbesserungen i80n, Bugfixes, uvm
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user