Missing template.js in Protostar's component.php #24532
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.
When showing forms in modals (for instance), radio buttons are not skinned and are actually partially hidden (because the CSS from template.css hides the clickable buttons, only showing the labels).
This is the result of the missing template.js, which adds the proper class names to the form elements.
Summary of Changes
Added the loading of template.js
Testing Instructions
Create a contact mail custom field of radio type.
Create a menu item of type 'List contacts in a category'.
Create an override of the com_contacts component (category view).
Modify the link to the contact items in the default_items.php override to force the modals (just for test purposes):
JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)).'&tmpl=component'
In the frontend, this will open the contacts into component.php rather than index.php.
Expected result
Actual result
Documentation Changes Required
None