Item Form - add new item, required element is not enforced

More
6 years 8 months ago - 6 years 8 months ago #68766 by lomuyeh
Replied by lomuyeh on topic Item Form - add new item
I created a test page, copied the html code of add item form, and try to figure which js causing this.

I found that:
/media/system/js/core.js

If core.js is loaded before admin.js, the form is OK.
If core.js is loaded after admin.js, the form is not OK.

Basically, the core.js is loaded before admin.js. But some modules load admin.js again, and after admin.js.

This is what I found. See if this helps.

Thanks,
Lomu
Last edit: 6 years 8 months ago by lomuyeh.

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

More
6 years 8 months ago #68768 by ggppdk
Replied by ggppdk on topic Item Form - add new item
Hello

code is admin.js file
is overriding code in core.js

i will see why it is loaded after admin.js


-- 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
6 years 8 months ago - 6 years 8 months ago #68769 by lomuyeh
Replied by lomuyeh on topic Item Form - add new item
Hi
If I disable some modules, like CB login, core.js won't be loaded again after admin.js.
So if I disable these modules, the form is OK.

<script src="core.js"></script>
<script src="admin.js"></script>

So I think the overriding is OK.

If I enable these modules, core.js will be loaded after admin.js again, at almost the end of js loading lines.

Like this:

<script src="core.js"></script> <-- this one is loaded by system I think
<script src="admin.js"></script> <-- this one is loaded by flexicontent
<script src="core.js"></script> <-- this one should be loaded by module

The core.js is loaded again, so the overriding is be overrided again I think.

I hope this helps.

Thanks,
Lomu
Last edit: 6 years 8 months ago by lomuyeh.

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

More
6 years 8 months ago #68780 by ggppdk
Replied by ggppdk on topic Item Form - add new item
Hello

it seems that the module could be adding the core.js file without call the Joomla API

i will check if it is the above is true


-- 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
6 years 8 months ago #68782 by ggppdk
Replied by ggppdk on topic Item Form - add new item
Hello

the problem is that some extensions will use "absolute URL path" for adding some files
(adding the domain name)

www.dddooommmain.com/ ...

instead of the correct way of using URL withou the domain name starting with just:
/...

The above result in some JS files being double loaded !!


-- 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
6 years 8 months ago #68783 by ggppdk
Replied by ggppdk on topic Item Form - add new item
In your case it seems to be happening by the com_bruce component


-- 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.

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