-
Notifications
You must be signed in to change notification settings - Fork 4
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
ECO-294/Form-errors #172
Conversation
tomasdrga
commented
Jul 25, 2024
- 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 mierne som sa stratil, co blokovalo? |
@@ -29,33 +44,19 @@ $(document).ready(function() { | |||
return true; | |||
} | |||
}); | |||
|
|||
var autoformError = $('#autoform-error').get(0); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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