It's about line addStatisStylesheet and idea as such.
If we have page without Autocomplete fields (for example simple CRUD page), then of course autocomplete.css file doesn't get loaded, because that PHP script doesn't even get executed.
But what happens when we click on Edit in CRUD and open up form in dialog window and this form contain autocomplete field? Then addStaticStylesheet get executed, but it didn't help us anyway.
I guess it's because it will be included only on documentReady event, but documentReady in case of frameURL dialogs will not happen.
It's about line addStatisStylesheet and idea as such.
If we have page without Autocomplete fields (for example simple CRUD page), then of course autocomplete.css file doesn't get loaded, because that PHP script doesn't even get executed. But what happens when we click on Edit in CRUD and open up form in dialog window and this form contain autocomplete field? Then addStaticStylesheet get executed, but it didn't help us anyway. I guess it's because it will be included only on documentReady event, but documentReady in case of frameURL dialogs will not happen.
How to solve this puzzle ?