[4.0] Drop inline script for caption.js#15956
[4.0] Drop inline script for caption.js#15956wilsonge merged 5 commits intojoomla:4.0-devfrom dgrammatiko:#####4.0-no-inline-JS-03
Conversation
|
Do we still need the caption.js? Imho all it does is what native HTML already can do for quite some time. |
|
Would be nice to get rid of it. |
|
as far as I remember, we kept it for B/C some time in the past. |
|
There are 2 options here
|
I would be very reluctant to do anything that alters a users data |
|
@brianteeman so we need one legacy.php override. |
We kept it for B/C when we changed the image button to use the native elements. But with J4 we can imho drop it. Maybe make it available as extern plugin for those who still need it for some reason.
What for? What would that override achieve?
Nah, never change user data. You can document it for users who want to do that themself or offer the JS as a plugin as I said above. But we need to drop that JS anyway and it will have the same impact if we do that in J4 or Jx. |
|
@Bakual https://github.com/joomla/joomla-cms/pull/15956/files#diff-f6f264d0b0673dc25ecc75e7746ec235R77 |
You're the George of our JavaScript code, everything's your fault 🤣 |
|
I know 😞 |
We can easily deprecate it in 3.8. |
|
I have tested this item ✅ successfully on 73222e9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15956. |
|
@DGT41 can you take a look into the conflict? |
|
@zero-24 done! |
|
OK I'm going to merge this. But I've also created a follow up issue #16948 for dropping caption altogether as it's a non-trivial migration path so isn't 'straightforward' |
Pull Request for Issue # .
Summary of Changes
Testing Instructions
if all tests green no tests needed!
Expected result
Actual result
Documentation Changes Required