ändern des zurück Button Validierung aus
This commit is contained in:
parent
47a5e719a8
commit
4f73329c3d
BIN
deploy-test.txt
BIN
deploy-test.txt
Binary file not shown.
@ -265,17 +265,20 @@ let currentStep = 1;
|
|||||||
|
|
||||||
function nextStep(step){
|
function nextStep(step){
|
||||||
|
|
||||||
if(!validateStep(currentStep)) return;
|
// 👉 Nur validieren, wenn wir vorwärts gehen
|
||||||
|
if(step > currentStep){
|
||||||
|
if(!validateStep(currentStep)) return;
|
||||||
|
}
|
||||||
|
|
||||||
saveForm();
|
saveForm();
|
||||||
|
|
||||||
currentStep = step;
|
currentStep = step;
|
||||||
|
|
||||||
document.querySelectorAll('.step')
|
document.querySelectorAll('.step')
|
||||||
.forEach(s => s.classList.remove('active'));
|
.forEach(s => s.classList.remove('active'));
|
||||||
|
|
||||||
document.getElementById('step'+step)
|
document.getElementById('step'+step)
|
||||||
.classList.add('active');
|
.classList.add('active');
|
||||||
|
|
||||||
updateNav();
|
updateNav();
|
||||||
updateProgress();
|
updateProgress();
|
||||||
|
|||||||
BIN
webhook-test.txt
BIN
webhook-test.txt
Binary file not shown.
Loading…
Reference in New Issue
Block a user