[4.0] Onclick and Onchange in joomla-field-switcher #20931
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue #20853 .
Summary of Changes
Make it possible to use
onclick
andonchange
event injoomla-field-switcher
Testing Instructions
Open global configuration and see outer html of the field "Search Engine Friendly URLs"
Open
/administrator/components/com_config/forms/application.xml
and change the field (insert onclick and onchange`)
to
Add the function for triggering the events. For example: Open the file /administrator/templates/atum/index.php and change the text
to
Open again global configuration and see outer html of the field "Search Engine Friendly URLs". No the attributes are added. If you click on the field "Search Engine Friendly URLs" the events
onclick
andonchange
are triggert. You see the alerts.Expected result
Onclick event and Onchange event are added to the field "Search Engine Friendly URLs". The Event you inserted in autom template is triggert.
Actual result
Nothing changed. No attribut is added to the joomla-field-switcher. No event is triggert. You see the alert.
Documentation Changes Required