? Success

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
6 Oct 2016

Pull Request for Issue # .

Summary of Changes

  • Drag and drop required jQuery (which wasn't really loaded by the plugin) which was WRONG. Blame me for that!
  • New tinymce-init relied on jQuery (again no jQuery load call)
  • jModalClose relied on document.onreadystatechange which was broken by the core.js with the new Joomla.Options.

Testing Instructions

Go to Admin -> configuration -> articles ->editing layouts and disable (hide) Frontend Images and Links.
Try to edit an article in the front end and use any of the xtd-buttons that have a modal (e.g. menu)
The modal will not close when selecting a menu.

Apply this patch and retry

Also try to drag and drop an image to tinymce area, the progress bar should appear and when complete disappear.

Documentation Changes Required

None

@Fedik you had a line options = jQuery.extend({}, options); in tiny-init.js. Is that required? Do we have to replicate this with native JS?
Also I moved these to files to system/js and this will make sense for J4 as all the Joomla owned scripts will be in that directory and everything else in a media/vendor/...

@wilsonge @rdeutz this is a release-blocker IMHO

avatar dgt41 dgt41 - open - 6 Oct 2016
avatar dgt41 dgt41 - change - 6 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2016
Category JavaScript External Library Front End Plugins
avatar brianteeman
brianteeman - comment - 6 Oct 2016

As you are deleting a file can you add that to the list of files to be
removed when a user upgrades please

On 6 October 2016 at 15:26, Dimitri Grammatikogianni <
notifications@github.com> wrote:

Pull Request for Issue # .
Summary of Changes

  • Drag and drop required jQuery (which wasn't really loaded by the plugin) which was WRONG. Blame me for that!
  • New tinymce-init relied on jQuery (again no jQuery load call)
  • jModalClose relied on document.onreadystatechange which was broken by the core.js with the new Joomla.Options.

Testing Instructions

Go to Admin -> configuration -> articles ->editing layouts and disable
(hide) Frontend Images and Links.
Try to edit an article in the front end and use any of the xtd-buttons
that have a modal (e.g. menu)
The modal will not close when selecting a menu.

Apply this patch and retry

Also try to drag and drop an image to tinymce area, the progress bar
should appear and when complete disappear.
Documentation Changes Required

None

@Fedik https://github.com/Fedik you had a line options =
jQuery.extend({}, options); in tiny-init.js. Is that required? Do we have
to replicate this with native JS?

@wilsonge https://github.com/wilsonge @rdeutz

https://github.com/rdeutz this is release-blocker IMHO

You can view, comment on, or merge this pull request online at:

#12324
Commit Summary

  • drop jquery, fix jModalClose()

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#12324, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8cukVKDJeznVnAZjAlt5iu1sgHR2ks5qxQUbgaJpZM4KQAXC
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar dgt41 dgt41 - edited - 6 Oct 2016
avatar dgt41
dgt41 - comment - 6 Oct 2016

@brianteeman these files were introduced in 3.7, so not avail in previous versions.

EDIT: Also not deleted just moved to media/system/js, but GitHub doesn't really get that...

avatar brianteeman
brianteeman - comment - 6 Oct 2016

ok

On 6 October 2016 at 15:30, Dimitri Grammatikogianni <
notifications@github.com> wrote:

@brianteeman https://github.com/brianteeman these files were introduced
in 3.7, so not avail in previous versions


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12324 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8fsGrIw9X8D0Nc_0_Dy5vh5C6bhaks5qxQXygaJpZM4KQAXC
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar dgt41 dgt41 - change - 6 Oct 2016
The description was changed
avatar zero-24 zero-24 - change - 6 Oct 2016
Labels Added: ?
avatar Fedik
Fedik - comment - 6 Oct 2016

@dgt41 In Joomla 3.7 jQuery.extend({}, options); can be replaced to Joomla.extend({}, options)

avatar dgt41
dgt41 - comment - 6 Oct 2016

@Fedik new toys, yay! Ok fixed that

21274b3 6 Oct 2016 avatar dgt41 IE<9
avatar infograf768
infograf768 - comment - 7 Oct 2016

Modals are now closing OK with this PR.

avatar zero-24 zero-24 - test_item - 8 Oct 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 8 Oct 2016

I have tested this item successfully on 21274b3

looks go to me. Thanks @dgt41


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

avatar infograf768 infograf768 - test_item - 8 Oct 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 8 Oct 2016

I have tested this item successfully on 21274b3


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

avatar zero-24 zero-24 - change - 8 Oct 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 8 Oct 2016

RTC

avatar joomla-cms-bot joomla-cms-bot - change - 8 Oct 2016
Labels Added: ?
avatar wilsonge wilsonge - close - 8 Oct 2016
avatar wilsonge wilsonge - merge - 8 Oct 2016
avatar rdeutz rdeutz - close - 8 Oct 2016
avatar joomla-cms-bot joomla-cms-bot - close - 8 Oct 2016
avatar wilsonge wilsonge - change - 8 Oct 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-08 22:27:18
Closed_By wilsonge
avatar brianteeman
brianteeman - comment - 9 Oct 2016

Removed RTC label

avatar joomla-cms-bot joomla-cms-bot - change - 9 Oct 2016
Labels Removed: ? ?
avatar infograf768
infograf768 - comment - 10 Oct 2016

@dgt41
As discussed in chat, just a reminder: this is now broken since I guess some other merges in 3.7.
TypeError: window.parent.jModalClose is not a function

Add a Comment

Login with GitHub to post a comment