-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
remove jq ready() when not needed #5255
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
Are the seach tools also in this PR?
com_admin:
|
|
@zero-24 Thanks! |
|
@DGT41 @phproberto I think we are all-set... right? This PR needs one more test: can you test it, Roberto? |
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.
Please ensure that there is a semicolon after the closing bracket. If not we can have issues when all the declared scripts are merged.
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.
Still semicolon missing here and in the other finder files.
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.
done
|
In com_plugins, jQuery(document).ready(function()
....Should not it be this ? jQuery(document).ready(function() {
Joomla.submitbutton = function(task)
{
if (task == 'plugin.cancel' || document.formvalidator.isValid(document.getElementById('style-form'))) {
Joomla.submitform(task, document.getElementById('style-form'));
}
}
}); |
|
@anibalsanchez can you test this one? |
|
com_admin OK |
|
I guess that validator failure is caused from the not working script in that page, but we have a PR for that: #5099 |
|
Two good tests setting to RTc - thanks |
|
@wilsonge Some insights: |
|
@wilsonge I stated above that version note is not saved, but that is wrong! the note is saved (you can see it in content history modal) but I guess the reload of the form doesn’t take account of any existing value. So all clear here! |
|
@test works fine here as well. Merging This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5255. |
This removes some unneeded jQuery dependency on submit functions!
Test
apply patch and validate that form submission is working for administrator:
com_admin
com_banners
com_categories
com_contact
com_content
com_finder