? ? Success

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
20 Nov 2015

XTD buttons with bootstrap modal

What is this?

XTD Buttons (the ones under the editor) are tightly coupled to mootools modal. We can do it in a better way: using bootstrap modals.

B/C

The functionality will not change with this PR. There are overrides both for jModalClose and SqueezeBox.Close functions to close the modal. There is though a possibility that buttons that rely on Mootools functions to stop working (mootools won’t be available). Also any plugins doing javascript calculations for the modal dimensions will render on a predefined modal size (hey we are suppose to do that with css, we are in the responsive era…)

Performance

Again: dropping Mootools is performance gain!

Testing

Set as your default editor either none or code mirror
Edit an article in Isis and in Protostar
Ensure that all buttons work as expected
Please try this also with 3pd buttons

avatar dgt41 dgt41 - open - 20 Nov 2015
avatar dgt41 dgt41 - change - 20 Nov 2015
Title
Mootools are evil
Mootools are evil
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2015
Title
Mootools are evil
Mootools are evil 😈
Labels Added: ?
avatar dgt41 dgt41 - change - 20 Nov 2015
Title
Mootools are evil
Mootools are evil 😈
avatar wilsonge wilsonge - change - 21 Nov 2015
Title
Mootools are evil 😈
Mootools is evil 😈
avatar photodude
photodude - comment - 22 Nov 2015

:+1:

avatar zero-24 zero-24 - change - 25 Nov 2015
Title
Mootools is evil 😈
Mootools is evil
avatar zero-24 zero-24 - change - 25 Nov 2015
Category JavaScript
avatar zero-24 zero-24 - change - 25 Nov 2015
Title
Mootools is evil
Mootools is evil
avatar dgt41 dgt41 - change - 6 Jan 2016
Title
Mootools is evil
XTD buttons should use bootstrap modals instead of mootools
avatar dgt41 dgt41 - change - 6 Jan 2016
Title
Mootools is evil
XTD buttons should use bootstrap modals instead of mootools
avatar dgt41
dgt41 - comment - 19 Jan 2016

@photodude is that a test-ok?

avatar photodude
photodude - comment - 19 Jan 2016

@dgt41 I haven't tested this PR yet. I'll add that to my todo list since I believe in this PR (Mootools is evil ????). I'll try to get to testing it tonight or by this weekend.

avatar photodude photodude - test_item - 20 Jan 2016 - Tested successfully
avatar photodude
photodude - comment - 20 Jan 2016

I have tested this item :white_check_mark: successfully on 0580918

Admin side works in ISIS with or without debug turned on

Site side protostar fails with debug with loging turned on (clicking the article button)
Notice: Trying to get property of non-object in \plugins\system\debug\debug.php on line 1794
Notice: Trying to get property of non-object in \plugins\system\debug\debug.php on line 1795

Without Debug turned on editing buttons in the front end work as expected.

Also note that the vertical height of the modals is smaller (shorter) than before this patch (we really need to fix the modals sizing at some point).

Calling this successful since editing in the front end results in a debug failure with or without this patch, assuming the error is an unrelated issue; therefore successful test.


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

avatar dgt41
dgt41 - comment - 20 Jan 2016

@andrepereiradasilva can you check this debug notices reported above? I think there might be related to the latest changes in the debug plugin

avatar andrepereiradasilva
andrepereiradasilva - comment - 20 Jan 2016

@dgt41 the debug plugin changes have not yet been merged.
Check https://github.com/joomla/joomla-cms/commits/staging/plugins/system/debug

avatar photodude
photodude - comment - 20 Jan 2016

@dgt41 The only way that @andrepereiradasilva debug changes would have effected this would have been IF the patch tester failed to remove that patch. I'll consider that an outside possibility.

But since @alikon has confirmed the debug issue I reported #8940 as being specific to having enabled log SQL executed query. Let us start there before trying to dig into if the patch tester possibly failed to remove a patch.

avatar anibalsanchez anibalsanchez - test_item - 27 Jan 2016 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 27 Jan 2016

I have tested this item :white_check_mark: successfully on 0580918

It works OK


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

avatar dgt41 dgt41 - change - 27 Jan 2016
Status Pending Needs Review
avatar dgt41
dgt41 - comment - 27 Jan 2016

I will set this one to Needs Review as there are possible b/c issues, as stated in the description.
Thanks @anibalsanchez @photodude for the tests!


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

avatar roland-d roland-d - change - 7 May 2016
Milestone Added:
avatar roland-d
roland-d - comment - 7 May 2016

As there are possible B/C issues I am postponing this for the next major release. In the meantime, @dgt41 can you please fix the merge conflicts? Thank you.

avatar roland-d roland-d - change - 7 May 2016
Milestone Added:
Status Needs Review Confirmed
avatar brianteeman brianteeman - change - 7 May 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 1 Aug 2016
Category JavaScript Administration Components Templates (admin) Plugins Front End Templates (site)
avatar dgt41 dgt41 - change - 1 Aug 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-08-01 17:04:20
Closed_By dgt41
avatar dgt41 dgt41 - close - 1 Aug 2016

Add a Comment

Login with GitHub to post a comment