-
-
Couldn't load subscription status.
- Fork 3.7k
Reduce unneeded calls for mootools #4888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch 👍
|
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 |
|
@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? |
|
@smanzi Yes this is expected behavior |
|
@test success |
|
@test success
-administrator/index.php?option=com_users&view=mail should demonstrate multiselect without mt
|
|
Simply pull in the changes. You don't need to rebase. |
|
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 😄. |
-Deprecate formvalidation and introduce formvalidator -Copy the layouts standard and confirm to isis and load jQuery instead of mootools
|
When there is a will there’s a way |
|
using gitshell I think it is: git checkout yourbranch |
|
@smanzi Thanks I am using a gui tool tower, which for some time I was misusing it. But thanks for the info! |
|
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) |
|
@roland-d Any guidance for the documentation update? What we have is already outdated as from 3.3 we use jquery validation code |
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_xxxxxBUT 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.