? ? Failure
Referenced as Related to: # 16948

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
10 May 2017

Pull Request for Issue # .

Summary of Changes

  • Drop inline scripts
  • javascript tests fixes

Testing Instructions

if all tests green no tests needed!

Expected result

Actual result

Documentation Changes Required

avatar dgt41 dgt41 - open - 10 May 2017
avatar dgt41 dgt41 - change - 10 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2017
Category Libraries Unit Tests JavaScript
avatar dgt41 dgt41 - change - 10 May 2017
Labels Added: ? ?
avatar Bakual
Bakual - comment - 11 May 2017

Do we still need the caption.js? Imho all it does is what native HTML already can do for quite some time.

avatar laoneo
laoneo - comment - 11 May 2017

Would be nice to get rid of it.

avatar infograf768
infograf768 - comment - 11 May 2017

as far as I remember, we kept it for B/C some time in the past.

avatar dgt41
dgt41 - comment - 11 May 2017

There are 2 options here

  • create one more layout override in the front end template e.g. legacy.php
  • update all content to use figure (tinyMCE does that already, but probably needs an sql script for content table)
avatar brianteeman
brianteeman - comment - 11 May 2017

update all content to use figure (tinyMCE does that already, but probably needs an sql script for content table)

I would be very reluctant to do anything that alters a users data

avatar dgt41
dgt41 - comment - 11 May 2017

@brianteeman so we need one legacy.php override.
Anyways this PR mainly created as a guideline to the javascript tests for the GSOC student (no inline scripts and a way to cope with Joomla.storageOptions)

avatar Bakual
Bakual - comment - 11 May 2017

as far as I remember, we kept it for B/C some time in the past.

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.

create one more layout override in the front end template e.g. legacy.php

What for? What would that override achieve?

update all content to use figure (tinyMCE does that already, but probably needs an sql script for content table)

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.

avatar dgt41
dgt41 - comment - 11 May 2017

@Bakual https://github.com/joomla/joomla-cms/pull/15956/files#diff-f6f264d0b0673dc25ecc75e7746ec235R77
it not even marked as deprecated ATM, so dropping it at least requires some prior notification...
Anyways I'm not against removing this legacy thing, just don't want to be the person to blame once again ?

avatar mbabker
mbabker - comment - 11 May 2017

just don't want to be the person to blame once again ?

You're the George of our JavaScript code, everything's your fault ?

avatar dgt41
dgt41 - comment - 11 May 2017

I know ?

avatar Bakual
Bakual - comment - 11 May 2017

it not even marked as deprecated ATM

We can easily deprecate it in 3.8.

avatar C-Lodder
C-Lodder - comment - 15 May 2017

I have tested this item successfully on 73222e9

code review


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

avatar C-Lodder C-Lodder - test_item - 15 May 2017 - Tested successfully
avatar zero-24
zero-24 - comment - 29 May 2017

@dgt41 can you take a look into the conflict?

avatar dgt41
dgt41 - comment - 29 May 2017

@zero-24 done!

avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar wilsonge wilsonge - change - 3 Jul 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-07-03 10:51:09
Closed_By wilsonge
avatar wilsonge wilsonge - close - 3 Jul 2017
avatar wilsonge wilsonge - merge - 3 Jul 2017
avatar wilsonge
wilsonge - comment - 3 Jul 2017

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'

avatar joomla-cms-bot joomla-cms-bot - edited - 3 Jul 2017

Add a Comment

Login with GitHub to post a comment