-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ve vzácných případech mohlo dojít k situace, že Nette.initForm způsobila chybu v případě AJAXové validace. Výjimečně mohlo dojít k tomu, že JS událost DOMContentLoaded byla vyvolána dříve, než dojde ke zpracování již staženého JS. V tu chvíli event handler vyvolat inicializaci formuláře, která prostředníctvím Nette.toggleForm spustila AJAXovou validaci ve chvíli, kdy ještě $.nette bylo undefined. Protože AJAXová validace vrací vždy `true`, není klíčové při `toggleForm` metodě vyvolávat request. Proto byla přidána podmínka, která ověřuje, že je `$.nette.ajax` definované.
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters