-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bump jquery from 2.2.4 to 3.1.0 #24023
Conversation
042c2d8
to
fc9ae94
Compare
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
fc9ae94
to
ae0a496
Compare
@@ -3699,7 +3699,7 @@ | |||
const enabled = tabView.canDisplay || undefined | |||
if (tabView.id) { | |||
OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab({ | |||
id: tabView.id, | |||
id: tabView.id, |
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.
the most important change
@@ -328,7 +328,7 @@ export default L10n | |||
* | |||
* @returns {String} locale string | |||
*/ | |||
export const getLocale = () => $('html').data('locale') | |||
export const getLocale = () => $('html').data('locale') ?? 'en' |
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.
👍
@@ -82,9 +82,10 @@ $.fn.contactsMenu = function(shareWith, shareType, appendTo) { | |||
} | |||
|
|||
actions.forEach(function(action) { | |||
const template = entryTemplate | |||
$list.find('ul').append(template(action)) | |||
$list.find('ul').append(entryTemplate(action)) |
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.
I'll happily see this one die #22274
}) | ||
|
||
$div.trigger('load') |
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.
FYI needed so a test can await the async operation to be done.
hyperlink: '#', | ||
title, | ||
})) | ||
|
||
$div.trigger('loaderror', jqXHR) |
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.
Same. Just see the updated spec code :)
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.
Tried a few thing, clicking around, files contactsmenu,settings, old legacy areas, no errors, works fine! 👍
Awesome job!!
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.
I also couldnt find anything that is broken because of this PR 👍
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.
Did a quick clicking around through the files app, shares, public shares and settings and it looked fine
Nice! 🚀 |
Like #23099 but in a smaller step.
📜 https://jquery.com/upgrade-guide/3.0
3.0 didn't work because of an UMD issue jquery/jquery-migrate#273, so I'm trying 3.1. Locally things still work.
is(':visible')
behaves different with jQuery 3. I couldn't ge t one of the tests to pass, but it's a component that will hopefully soon be replaced by Vue so I just dropped the one test. https://api.jquery.com/visible-selector/ for more info..selector
was deprecated in 1.9 and removed in 3. I removed an assertion that relied on that.done
and have the test framework await the results