Broken javascript because it is missing some library

More
8 years 3 months ago #63410 by jrodgar
Hi!

I have a javascript error, breaking other scripts on the page

The error is:
Code:
Uncaught TypeError: Fx.Slide is not a constructor
Located on
Code:
jQuery(document).ready(function(){ var slideaccess = new Fx.Slide('tabacces'); var slidenoaccess = new Fx.Slide('notabacces'); slideaccess.hide(); $$('fieldset.flexiaccess legend').addEvent('click', function(ev) { slideaccess.toggle(); slidenoaccess.toggle(); }); });
Wich I guess come from here ( github.com/FLEXIcontent/flexicontent-cck...m/tmpl/form.php#L865 )

It breaks because is missing modal.js and mootols-more.js, that are added by JHtml::_('behavior.modal');

And here is your part, I don´t know who have to added but is not. Because I have two environments and in one is working, but I can´t find the difference on the configuration/code

As a workaround, I force added JHtml::_('behavior.modal'); on my template, and that makes the trick, for now

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.457 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline