[required, make fake class?] Joomla is not defined in script

More
9 years 2 months ago #53016 by Miken

ggppdk wrote: Hello

this is required, it is used in several places

I like that removed all can use this script in the template, but it can still wrapped in? Where to find it?
Code:
if (typeof Joomla == 'undefined') { ... }

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
9 years 2 months ago #53018 by ggppdk
Hello

you could do this:


in your custom JS code (file)
add a "Joomla" class

and inside it add empty functions, of every function that is needed called


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
9 years 2 months ago #53022 by Miken

ggppdk wrote: Hello

you could do this:


in your custom JS code (file)
add a "Joomla" class

and inside it add empty functions, of every function that is needed called

Okay. Will do so. But it is better to add a check on the existence or the ability to disable the loading of such scripts.

Flexicontent 3.1.1 & Joomla 3.7.1

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.275 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