Noch ein Nachtrag zu meiner
Antwort #493.
Das Problem scheint sich aufzulösen, wenn man in der Datei templates/bootstrap4/javascript/extra/default.js.php ab ca. Zeile 226 folgende Codesequez
<?php
echo ' $("#create_account *[name=\'street_address\']").blur(function() {if(!/[1-9]/.test(this.value) && this.value.length >= ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . '){$(\'#number-error\'). slideDown(200)}else{$(\'#number-error\').slideUp(200)}});' . PHP_EOL;
if ($_SESSION['language_code'] == 'de') {
echo ' $("#create_account *[name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">Hausnummer fehlt!</span> Ignorieren Sie diese Meldung wenn Sie keine haben.</div>\');' . PHP_EOL;
} else if ($_SESSION['language_code'] == 'en') {
echo ' $("#create_account *[name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">House number is missing!</span> Ignore this message if you have no house number.</div>\');' . PHP_EOL;
} else {
echo ' $("#create_account *[name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">House number is missing!</span> Ignore this message if you have no house number.</div>\')' . PHP_EOL;
}
?>
for (key in warnings) {
if (typeof strWarnings != "undefined" && strWarnings.indexOf(key) != -1) {
$("#create_account *[name='" + warnings[key] + "']").parent().append('<div class="create-account-warning-text" style="width: 95%; float: left;">' + key + '</div>').addClass(classWarnings);
if (hasWarnings != 1) {
$("#create_account .alert-warning").css("display", "none");
$("#create_account *[name='password'], #create_account *[name='confirmation'], #create_account *[name='vvcode']").parent().addClass(classWarnings);
}
hasWarnings = 1;
}
}
});
mit dieser ersetzt.
<?php
echo ' $("#create_account [name=\'street_address\']").blur(function() {if(!/[1-9]/.test(this.value) && this.value.length >= ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . '){$(\'#number-error\'). slideDown(200)}else{$(\'#number-error\').slideUp(200)}});' . PHP_EOL;
if ($_SESSION['language_code'] == 'de') {
echo ' $("#create_account [name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">Hausnummer fehlt!</span> Ignorieren Sie diese Meldung wenn Sie keine haben.</div>\');' . PHP_EOL;
} else if ($_SESSION['language_code'] == 'en') {
echo ' $("#create_account [name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">House number is missing!</span> Ignore this message if you have no house number.</div>\');' . PHP_EOL;
} else {
echo ' $("#create_account [name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">House number is missing!</span> Ignore this message if you have no house number.</div>\')' . PHP_EOL;
}
?>
for (key in warnings) {
if (typeof strWarnings != "undefined" && strWarnings.indexOf(key) != -1) {
$("#create_account [name='" + warnings[key] + "']").parent().append('<div class="create-account-warning-text" style="width: 95%; float: left;">' + key + '</div>').addClass(classWarnings);
if (hasWarnings != 1) {
$("#create_account .alert-warning").css("display", "none");
$("#create_account [name='password'], #create_account [name='confirmation'], #create_account [name='vvcode']").parent().addClass(classWarnings);
}
hasWarnings = 1;
}
}
});
Konkret also alle Asterisk ersatzlos entfernt.
Gruss
Hanspeter