? Success

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
21 Oct 2014

Executive summary

Lately Joomla made some shift from mootools to jquery, for a number of scripts, thanks to the work of people participated on Joomla! Google Summer of Code Program in 2013. Although we use, let’s say, form validation in conjunction with jquery we still do call mootools as well. Which is wrong, as we increase the http requests without any benefits! So this PR tries to bring some sanity to what framework is loaded, by:
1 Removing uneeded calls for mt in cms/html/behavior.php
2 Corrects the multiselect.js script (and the uncompressed) to remove an error (Joomla is undefined)
3 Correct the view of administrator/com_users/views/mail/tmpl/default.php (chosen is called but not core.js)
4 Move all the calls from toolbar buttons to their respective layouts

Testing

UPDATE PLEASE SEE THE TESTING INSTRUCTION ON THE PRs

Introduce jquery formvalidator for com_xxxxx
BUT ALSO CHECK THESE:

administrator/index.php?option=com_checkin should demonstrate multiselect without mt
administrator/index.php?option=com_users&view=mail should demonstrate form sent and validate without mt
administrator/index.php?option=com_modules should demonstrate multiselect and combobox without mt
http://localhost/administrator/index.php?option=com_admin&view=sysinfo should demonstrate highlighter.js without mt
Logout and log in to demonstrate the use of noframes without mt.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar dgt41 dgt41 - open - 21 Oct 2014
avatar jissues-bot jissues-bot - change - 21 Oct 2014
Labels Added: ?
avatar dgt41 dgt41 - change - 21 Oct 2014
The description was changed
avatar brianteeman brianteeman - change - 21 Oct 2014
Category JavaScript
avatar dgt41 dgt41 - change - 7 Nov 2014
The description was changed
Title
Reduce undeeded calls for mootools
Reduce unneeded calls for mootools
avatar dgt41 dgt41 - change - 8 Nov 2014
The description was changed
avatar dgt41
dgt41 - comment - 8 Nov 2014

If this gets merged the documentation here needs also to be updated. Actually this is already outdated as the validate.js is jquery dependent since 3.3

avatar smanzi
smanzi - comment - 11 Nov 2014

@dgt41 administrator/index.php?option=com_users&view=mail issues errors (missing subject and/or message) in pop (no mt, just basic pop-up...) Is this expected?

avatar dgt41
dgt41 - comment - 11 Nov 2014

@smanzi Yes this is expected behavior

avatar smanzi
smanzi - comment - 11 Nov 2014

@test success

avatar anibalsanchez
anibalsanchez - comment - 12 Nov 2014

@test success

  • administrator/index.php?option=com_checkin should demonstrate multiselect without mt OK

-administrator/index.php?option=com_users&view=mail should demonstrate multiselect without mt
OK

  • administrator/index.php?option=com_modules should demonstrate multiselect and combobox without mt
    OK

  • administrator/index.php?option=com_admin&view=sysinfo should demonstrate highlighter.js without mt
    OK ... but sysinfo does not load highlighter.js. Tested with com_finder in front-end site, searching for a keyword and disabling everything but "Highlight Search Terms"

  • Login - Logout without mt
    OK


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

avatar anibalsanchez anibalsanchez - test_item - 12 Nov 2014 - Tested successfully
avatar anibalsanchez anibalsanchez - test_item - 12 Nov 2014 - Tested successfully
avatar dgt41
dgt41 - comment - 15 Nov 2014

Some heads up informations:
These PRs have already two passing tests:
#5039 joomla/joomla-cms Introduce jquery formvalidator for com_admin
#5041 joomla/joomla-cms Introduce jquery formvalidator for com_banners
#5042 joomla/joomla-cms Introduce jquery formvalidator for com_config
#5043 joomla/joomla-cms Introduce jquery formvalidator for com_contact
#5044 joomla/joomla-cms Introduce jquery formvalidator for com_content
#5045 joomla/joomla-cms Introduce jquery formvalidator for com_finder
#5046 joomla/joomla-cms Introduce jquery formvalidator for com_languages
#5047 joomla/joomla-cms Introduce jquery formvalidator for com_menus
#5048 joomla/joomla-cms Introduce jquery formvalidator for com_messages
#5049 joomla/joomla-cms Introduce jquery formvalidator for com_modules
#5050 joomla/joomla-cms Introduce jquery formvalidator for com_newsfeed
#5051 joomla/joomla-cms Introduce jquery formvalidator for com_plugins
#5052 joomla/joomla-cms Introduce jquery formvalidator for com_redirect
#5053 joomla/joomla-cms Introduce jquery formvalidator for com_tags
#5054 joomla/joomla-cms Introduce jquery formvalidator for com_templates
#5056 joomla/joomla-cms Introduce jquery formvalidator for com_config ::frontend
#5058 joomla/joomla-cms Introduce jquery formvalidator for com_users
# 18 joomla-extensions/weblinks Introduce jquery formvalidator for com_weblinks

These need tests:
#5128 Smart search suggestion script from mootools to jquery
#5112 joomla/joomla-cms Introduce jquery formvalidator for com_contact ::frontend
#5113 joomla/joomla-cms Introduce jquery formvalidator for com_content ::frontend
#5114 joomla/joomla-cms Introduce jquery formvalidator for com_mailto ::frontend
#5115 joomla/joomla-cms Introduce jquery formvalidator for com_newsfeed ::frontend
#5116 joomla/joomla-cms Introduce jquery formvalidator for com_tags ::frontend
#5117 joomla/joomla-cms Introduce jquery formvalidator for com_wrapper ::frontend

And this one needs only review for typos:
#4895 joomla/joomla-cms Convert mootools document.id() to agnostic document.getElementId()

jqpatches

Question for PLT @Bakual, @infograf768 @chrisdavenport :
Any considerations for 3.4 inclusion?

avatar smanzi
smanzi - comment - 15 Nov 2014

@dgt41 Dimitris, link #18 above is broken: it should have been joomla-extensions/weblinks#18

avatar dgt41
dgt41 - comment - 15 Nov 2014

@smanzi updated! Thanks Sergio!

avatar Hackwar
Hackwar - comment - 17 Nov 2014

@test success
Since we have at least 3 successfull tests, I'd say this could be merged. Can someone set this to RTC?

avatar roland-d roland-d - alter_testresult - 18 Nov 2014 - smanzi: Tested successfully
avatar roland-d roland-d - alter_testresult - 18 Nov 2014 - hackwar: Tested successfully
avatar roland-d roland-d - change - 18 Nov 2014
Status Pending Ready to Commit
avatar roland-d
roland-d - comment - 18 Nov 2014

We have 3 successful tests, moving to RTC.

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

avatar roland-d
roland-d - comment - 18 Nov 2014

@dgt41 I can no longer apply this patch, I get this error:
error: patch failed: layouts/joomla/toolbar/batch.php:9
error: layouts/joomla/toolbar/batch.php: patch does not apply

Can you check?

avatar dgt41
dgt41 - comment - 18 Nov 2014

@roland-d I guess patch tester had enough of my code ????. Still good here:
screen shot 2014-11-18 at 10 07 25

avatar roland-d
roland-d - comment - 18 Nov 2014

@dgt41 I am not using the patch tester but the Git command line so I can see any codestyle issues as well. As opposed to the patch tester, Git doesn't replace the complete file but applies the actual diff.

I have restarted the Travis build to see what it says.

avatar dgt41
dgt41 - comment - 18 Nov 2014

Line 9 is blank in that file either in my version or the original. I am not a git expert, but is there some caching you can flush?

avatar roland-d
roland-d - comment - 18 Nov 2014

@dgt41 I found it, it is not my installation but the file in this diff is outdated. The current staging has a new commit after your change on this batch.php file. See here:
49fc080
It adds a line after line 12, that is why I can't apply the patch.

avatar dgt41
dgt41 - comment - 18 Nov 2014

Do I need to rebase this?

avatar Hackwar
Hackwar - comment - 18 Nov 2014

Simply pull in the changes. You don't need to rebase.

avatar dgt41
dgt41 - comment - 18 Nov 2014

I done something pretty stupid when I created this, instead of the proper origin: joomla-cms/staging I used my forked one. If I do anything this will be ruined big time! But now I figure it out how to use tower ????.
Seriously now, sorry for this awkward situation

08eb41c 18 Nov 2014 avatar dgt41 UT
238af27 18 Nov 2014 avatar dgt41 UT
85b6a3e 18 Nov 2014 avatar dgt41 CS
33c33c3 18 Nov 2014 avatar dgt41 UT
avatar jissues-bot jissues-bot - change - 18 Nov 2014
Labels Added: ?
avatar dgt41
dgt41 - comment - 18 Nov 2014

When there is a will there’s a way

avatar smanzi
smanzi - comment - 18 Nov 2014

using gitshell I think it is:

git checkout yourbranch
git fetch upstream/pull/nnnn
git merge

avatar dgt41
dgt41 - comment - 18 Nov 2014

@smanzi Thanks I am using a gui tool tower, which for some time I was misusing it. But thanks for the info!

avatar smanzi
smanzi - comment - 19 Nov 2014

I don't know with your GUI, but with the GUI provided by GitHub there are things you can't do and must use git commands (in gitshell, which is provided together with the GUI)

avatar roland-d
roland-d - comment - 19 Nov 2014

@dgt41 Thanks, PR applies no problem and Travis is happy.
@test: Works as expected.

avatar phproberto phproberto - close - 20 Nov 2014
avatar phproberto phproberto - change - 20 Nov 2014
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2014-11-20 09:58:42
avatar dgt41
dgt41 - comment - 24 Nov 2014

@roland-d Any guidance for the documentation update? What we have is already outdated as from 3.3 we use jquery validation code

avatar roland-d
roland-d - comment - 24 Nov 2014

@dgt41 Let's ask @Hutchy68 as he is the one leading the documentation efforts. What can be done about the documentation Tom?

Add a Comment

Login with GitHub to post a comment