Loading custom jquery for each type

More
10 years 9 months ago #38832 by brandonking
Yeah.. I mean js .. That's good that you can implement it easily for item view. Can you also add it in category view?

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

More
10 years 9 months ago #38837 by ggppdk
So you mean category parameters?


-- 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
10 years 9 months ago #38844 by brandonking
Like in image field, Enable above in views params, we can load js files in different view,
Items, Categories, Module, Backend.

So that we can prevent js conflicts. :)

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

More
10 years 9 months ago #38862 by brandonking
Hello,
I have tried custom js code for item form but didn't work.
If I load it manually(loading js file separately inside head), it works.
The code below is used when user click empty image box in item (or edit) form then file browser will pop up.
Code:
var j = jQuery.noConflict(); j(document).on("click",".empty_image",function (e) { var getidimgholder = j(this).attr('id').replace('_preview_image', '_newfile'); j('#' + getidimgholder).trigger('click'); });

Regards,

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

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