[Vtigercrm-developers] Poss. to have HEADERSCRIPT dependent on vtiger version?
Alan Lord
alanslists at gmail.com
Sat Oct 7 15:55:40 GMT 2017
On 07/10/17 16:35, Sutharsan Jeganathan wrote:
> Hi
>
> Hope this will work.
> http://api.jquery.com/jQuery.getScript
>
> It is bit slower, but possible to send an Ajax to vtigerversion.php
> then load relevant script
Thanks - but I managed to come up with a workaround - in the <body tag
is a data attribute "skinpath" with a path: layouts/{v7,vlayout}/skins.
This changes between v7 and v6 - as above - so I use that for now with a
simple indexOf test in my init function.
It's not ideal but it works.
Cheers
Al
More information about the vtigercrm-developers
mailing list