Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECO-294/Form-errors #172

Merged
merged 2 commits into from
Aug 2, 2024
Merged

ECO-294/Form-errors #172

merged 2 commits into from
Aug 2, 2024

Conversation

tomasdrga
Copy link
Contributor

  • Problem bol v .js pre autoform, ktory blokoval .js pre ostatne forms, ktore boli za nim.
  • Upravil som vsetky formulare aby spravne ukazovali errors a success a aby sa spravne zatvarali (nenechavali error inputy)

@tomasdrga tomasdrga requested a review from jsuchal July 25, 2024 13:57
@jsuchal
Copy link
Member

jsuchal commented Jul 25, 2024

@tomasdrga mierne som sa stratil, co blokovalo?

@@ -29,33 +44,19 @@ $(document).ready(function() {
return true;
}
});

var autoformError = $('#autoform-error').get(0);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsuchal konkretne tato cast, ktora hladala na kazdej pagy autoform classy

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ale ved to by nemalo vadit nie? Nenajde tak nie je problem.

@@ -29,33 +44,19 @@ $(document).ready(function() {
return true;
}
});

var autoformError = $('#autoform-error').get(0);
addCloseButtonListener(autoformError);
Copy link
Contributor Author

@tomasdrga tomasdrga Aug 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsuchal chcel som označiť tento riadok, keď sa nenájde autoformError z predchádzajúceho riadku nič sa nestane, no keď sa potom posunie do funkcie addCloseButtonListener(autoformError);, tak to zlyhá na var closeButton = node.querySelector('.alert .close'); , preto sa toto teraz udeje iba keď sa nájde autoformError

@tomasdrga tomasdrga merged commit bf6e3e4 into master Aug 2, 2024
2 checks passed
@tomasdrga tomasdrga deleted the ECO-294/Form-errors branch August 2, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants