No Code Attached Yet
avatar regularlabs
regularlabs
25 Aug 2021

Fields, like the ArticleField used in the Article menu item, open a modal to select the article.
However, on selecting/clearing the selection, the change event is not triggered on the hidden form field that contains the value.
This means you can't have custom javascript that triggers to the change event on those fields.

The solution is to add something like this to window.processModalParent in media/system/js/fields/modal-fields.js before the return.

fieldId.dispatchEvent(new Event('change'));
fieldTitle.dispatchEvent(new Event('change'));

image

avatar regularlabs regularlabs - open - 25 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 25 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Aug 2021
avatar PhilETaylor
PhilETaylor - comment - 25 Aug 2021

More spam - interestingly all the spam comes from issues.Joomla.org so maybe that can be improved?

avatar RubyClarke2021
RubyClarke2021 - comment - 25 Aug 2021

What spam?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35370.

avatar PhilETaylor
PhilETaylor - comment - 25 Aug 2021

Your spam.

avatar RubyClarke2021
RubyClarke2021 - comment - 25 Aug 2021

Don't ask for advice on Joomla, no wonder so many people went with WordPress.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35370.

avatar PhilETaylor
PhilETaylor - comment - 25 Aug 2021

Lol it's like a bot. Haha.

avatar RubyClarke2021
RubyClarke2021 - comment - 25 Aug 2021

You're btw.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35370.

avatar PhilETaylor
PhilETaylor - comment - 25 Aug 2021

Lol a bot with attitude - and a misunderstanding of English too haha

avatar RubyClarke2021
RubyClarke2021 - comment - 25 Aug 2021

Obviously not, when you can't even use correct grammar. You're = You are. Basic English. What do you do for a living?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35370.

avatar PhilETaylor
PhilETaylor - comment - 25 Aug 2021

You're wrong. Haha spammers.

avatar regularlabs
regularlabs - comment - 25 Aug 2021

What the F is this... can these messages please be removed?

avatar alikon
alikon - comment - 25 Aug 2021

consider to close this and open a new one ;)

avatar regularlabs regularlabs - change - 25 Aug 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-08-25 16:58:12
Closed_By regularlabs
avatar regularlabs regularlabs - close - 25 Aug 2021
avatar alikon
alikon - comment - 25 Aug 2021

thanks

avatar PhilETaylor
PhilETaylor - comment - 25 Aug 2021

There was no need to close this. There has been a considerable amount of spam over the last 24 hours. The moderators could have deleted the comments and blocked the users.

Add a Comment

Login with GitHub to post a comment