OhGoogleMapFormTypeBundle icon indicating copy to clipboard operation
OhGoogleMapFormTypeBundle copied to clipboard

optionally load javascripts using LcnIncludeAssetsBundle

Open jfmaeck opened this issue 10 years ago • 1 comments

Hi @ollietb,

thank your for providing this useful plugin.

From your Readme:

Because the form type template includes javascript, there's not yet a way to bunch it all together at the very bottom of the page, so it is included at the bottom of the field. This means that jquery and the javascript plugin in Resources/public/js needs to be included before the field. I'm not sure of a way around this, but I think it's going to be addressed in a later version of the form framework.

To overcome this limitation in Symfony 2 we at Faibl Locaine.com built the LcnIncludeAssetsBundle. I created this small pull request to optionally enable automatic script loading in projects using the LcnIncludeAssets bundle.

If you like it, feel free to include the changes in your plugin.

Cheers!

Jonas

jfmaeck avatar Aug 24 '15 20:08 jfmaeck

+1

nicodemuz avatar Sep 22 '15 15:09 nicodemuz