Troopers / AlertifyBundle

Harmonize notifications in your Symfony app.
MIT License
48 stars 18 forks source link

wait document loading for call toastr #63

Closed BFoucher closed 7 years ago

lenybernard commented 7 years ago

Ajax doesn't fire document.ready, http://stackoverflow.com/questions/20246299/does-ajax-loaded-content-get-a-document-ready.

It needs to be included after the libraries. There is 2 way to render alerts, the twig extension (for ajax mode only (?)) or the event listener which on kernel.response, will include automatically the alerts just before the </body> tag.