? Success

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
18 Nov 2015

This is covered in tinyMCE

Since we moved the XTD buttons in the tinyMCE's toolbar, some overrides for jmodalclose and squeezebox.close functions are required. This is done here

Testing {UPDATED}

To test the functionality of the overrides you will need to comment out and change some lines (temporarily)
So for the case that Mootools are not loaded:
Select ISIS as the template

  1. CASE 1 (No mootools using jModalClose)
    Edit an article
    Use the xtd buttons to insert an article. (should close the tinymce modal)

  2. CASE 2 (No mootools using SqueezeBox.close)
    Change line 52 of plugins/editors-xtd/article/article.php to SqueezeBox.close();
    Retest (tinymce modal should close)

Now change template to HATHOR

  1. CASE 3 (Mootools present using jModalClose)
    Edit an article
    Use the xtd buttons to insert an article. (should close the tinymce modal)

  2. CASE 4 (Mootools present using SqueezeBox.close)
    In the file administrator/components/com_media/views/images/tmpl/default.php change all jModalClose() to SqueezeBox.close() on lines 54-56.
    Try inserting an image (through images and links sidebar) and see if the modal closes correctly.

avatar dgt41 dgt41 - open - 18 Nov 2015
avatar dgt41 dgt41 - change - 18 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Nov 2015
Labels Added: ?
avatar waader
waader - comment - 18 Nov 2015

I could not see any difference after applying the patch. When I select a module or article link the modal window stays open.
When inserting a page break you can see another odd behavior which has nothing to do with this patch. I type in some text in the "Page Title" field and the "Table of Contents Alias" field then I hit the "Insert Page Break" Button. Next the CPanel get loaded within the modal window.
pagebreak2

avatar dgt41
dgt41 - comment - 18 Nov 2015

@waader I cannot replicate this, are there any errors logged in the console?

avatar Bakual
Bakual - comment - 18 Nov 2015

Make sure to also check with 3rd party components and plugins.
This code looks like some B/C code which allows to close Mootools modals using JModal.close.
The modal method also isn't specific to the editor plugins and TinyMCE. It is used for any modals by any extension. So please don't only test with the core editor buttons.

avatar dgt41
dgt41 - comment - 18 Nov 2015

Ohh crap ???? I deleted too many lines!!!

avatar Bakual
Bakual - comment - 19 Nov 2015

Ah, makes more sense now indeed :+1:

The changes in the pagebreak plugin looks more like it is only codestyle, with a bit visual change coming from changing 'btn-primary' to 'btn-success pull-right'. I'm not sure what the purpose is there. At least it looks unrelated to the PR and I would actually like to keep PRs on a single topic.
So I'm not sure if that change ended up here accidently.

avatar dgt41
dgt41 - comment - 19 Nov 2015

@Bakual the script part is indeed just cs, but the addition of the blank line at the top was reported before as bad rendering for that modal. Also the change of classes for the button is just for consistency. These are really easy fixes so I thought to throw them here instead of opening yet another PR

avatar waader
waader - comment - 19 Nov 2015

I did a clean install and now the modal windows are closing with isis, not with hathor.

Side note: I could not reproduce the problem with the page break modal with isis, but with hathor. I also wanted to test a 3rd party extension but I found a fundamental problem there. To clarify that I invited them to test there extension with the current staging branch.

I will do some more test when I have time available.

avatar dgt41
dgt41 - comment - 19 Nov 2015

@waader Thanks for the input. Apparently the overrides for both jModalClose and SqueezeBox.Close were too ambitious… Now should cover all cases (mootools already there, no mootools there).
To test follow the description above

avatar zero-24 zero-24 - change - 25 Nov 2015
Easy No Yes
avatar zero-24 zero-24 - change - 25 Nov 2015
Category Libraries
avatar infograf768
infograf768 - comment - 15 Dec 2015

Firefox. Macintosh

Before patch:
I do not have the general issue here. Modals close OK (some need to click the Insert Button which is fine), except when using Hathor and com_messages Recipient where one has to Close the modal to get the user name into the field after clicking on that name.

After patch:
The issue is solved with Hathor and com_messages. Choosing a recipient closes the modal.
BUT Hathor gets a new issue:
choosing an article in the modal when using the xtd in Hathor does not close anymore the modal.

avatar dgt41 dgt41 - change - 30 Dec 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-12-30 00:41:28
Closed_By dgt41
avatar dgt41 dgt41 - change - 30 Dec 2015
Status Closed Pending
avatar dgt41 dgt41 - close - 30 Dec 2015
avatar dgt41 dgt41 - close - 30 Dec 2015
avatar dgt41 dgt41 - close - 30 Dec 2015
avatar dgt41
dgt41 - comment - 30 Dec 2015

@infograf768 can you reopen this one? I closed it by mistake...

avatar joomla-cms-bot joomla-cms-bot - reopen - 30 Dec 2015
avatar infograf768 infograf768 - change - 30 Dec 2015
Status Closed Pending
Closed_Date 2015-12-30 00:41:27
Closed_By dgt41
avatar infograf768
infograf768 - comment - 30 Dec 2015

Re-opened


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

avatar infograf768
infograf768 - comment - 30 Dec 2015
avatar joomla-cms-bot joomla-cms-bot - reopen - 30 Dec 2015
avatar dgt41 dgt41 - change - 30 Dec 2015
The description was changed
avatar dgt41
dgt41 - comment - 6 Jan 2016

Calling for testers as this is a release blocker
@waader @anibalsanchez @infograf768 @andrepereiradasilva

avatar dgt41 dgt41 - change - 6 Jan 2016
The description was changed
Title
Useless code in behavior.php
Proper modal close overrides for tinyMCE
avatar dgt41 dgt41 - change - 6 Jan 2016
Title
Useless code in behavior.php
Proper modal close overrides for tinyMCE
avatar anibalsanchez anibalsanchez - test_item - 6 Jan 2016 - Tested unsuccessfully
avatar anibalsanchez
anibalsanchez - comment - 6 Jan 2016

I have tested this item :red_circle: unsuccessfully on 2e20a49

After commenting the lines, the article is inserted in the text but the modal is not closed


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

avatar dgt41
dgt41 - comment - 6 Jan 2016

@anibalsanchez You did also change line 52 of plugins/editors-xtd/article/article.php jModalClose(); to SqueezeBox.close(); ?

avatar dgt41 dgt41 - change - 6 Jan 2016
The description was changed
avatar dgt41 dgt41 - change - 6 Jan 2016
The description was changed
avatar anibalsanchez anibalsanchez - test_item - 6 Jan 2016 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 6 Jan 2016

I have tested this item :white_check_mark: successfully on 2e20a49

Ups, I read only the part about commenting! It works perfectly fine :-D


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

avatar dgt41 dgt41 - change - 6 Jan 2016
The description was changed
avatar dgt41 dgt41 - change - 6 Jan 2016
The description was changed
avatar dgt41
dgt41 - comment - 6 Jan 2016

@anibalsanchez sorry about the poor instructions, I've updated them to be more clear and easy steps to follow! Thanks for texting! ????

avatar dgt41 dgt41 - change - 6 Jan 2016
The description was changed
avatar infograf768 infograf768 - test_item - 7 Jan 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 7 Jan 2016

I have tested this item :white_check_mark: successfully on 2e20a49


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

avatar infograf768 infograf768 - change - 7 Jan 2016
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 7 Jan 2016

This should go into 3.5.0.

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2016
Labels Added: ?
avatar Kubik-Rubik
Kubik-Rubik - comment - 7 Jan 2016

Thank you @dgt41 and testers. Merged!

avatar Kubik-Rubik Kubik-Rubik - close - 7 Jan 2016
avatar joomla-cms-bot joomla-cms-bot - close - 7 Jan 2016
avatar Kubik-Rubik Kubik-Rubik - reference | 83b8549 - 7 Jan 16
avatar Kubik-Rubik Kubik-Rubik - merge - 7 Jan 2016
avatar Kubik-Rubik Kubik-Rubik - close - 7 Jan 2016
avatar Kubik-Rubik Kubik-Rubik - change - 7 Jan 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-01-07 14:32:20
Closed_By Kubik-Rubik
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2016
Labels Removed: ?
avatar dgt41 dgt41 - head_ref_deleted - 7 Jan 2016
avatar infograf768
infograf768 - comment - 8 Jan 2016

Please add milestone.

avatar Kubik-Rubik Kubik-Rubik - change - 8 Jan 2016
Milestone Added:

Add a Comment

Login with GitHub to post a comment