[4.0] Fix switch functionality for template overrides.#26359
[4.0] Fix switch functionality for template overrides.#26359wilsonge merged 6 commits intojoomla:4.0-devfrom
Conversation
|
I have tested this item ✅ successfully on d118e72 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26359. |
|
@infograf768 Are you referring to the fact that the switchers are only grey when deactivated? I fixed this in #26360. Or is there something else? |
|
@Harmageddon We have a similar issue in the Template Style Edit with label and switcher state where we should have as label |
|
There is already a PR for the double text |
|
Tbh, I'm not sure whether these changes belong here or in #26360, but I just included them here. Should look better now. Now, it is required to test the switchers in other places, too, to make sure I didn't mess them up. From global configuration and some modules, it looks fine to me. |
|
@Harmageddon Persian is RTL and should work. |
|
Thanks @richard67! To me, it looks good now. But @infograf768, maybe you might want to check, as you are an expert of RTL compatibility IIRC? ;-) |
|
will do tomorrow |
|
Works quite fine. Thanks. For a reason that I ignore, we have in LTR a if we don't want to keep this padding, we just have to delete it from the LTR part. to NOTEJust to remember. Unrelated to this patch. |
|
See Tree correction in #26367 |
|
You're absolutely right, thank you for the good spot @infograf768! |
|
I have tested this item ✅ successfully on 09be866 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26359. |
|
@richard67 please test again |
|
@infograf768 Am already preparing my environment for this 👅 |
|
I have tested this item ✅ successfully on 09be866 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26359. |
|
@infograf768 RTC ;-) |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26359. |
|
Thanks! |


Pull Request for Issue #25323.
Summary of Changes
This is a proposal to fix the functionality of the switchers in the template override view that had been broken with #24463.
@dgrammatiko I removed parts of your JS code including the observers, because of the different switch functionality now. Could you please have a look whether this might break anything?
The new admin template slightly changed the layout of this page, so the behaviour when all panels are open is not exactly the same as before.
Before
After
Testing Instructions
Expected result
An additional area containing the original, respectively the difference between override and original, or both should appear.
The state of every switcher should be saved after reloading the page.
Actual result
Nothing happens.
Documentation Changes Required
None