-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Bump jquery from 2.2.4 to 3.1.0 #24023
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
042c2d8 to
fc9ae94
Compare
Signed-off-by: Christoph Wurst <[email protected]>
fc9ae94 to
ae0a496
Compare
| 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
| * @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.
👍
| 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
| $list.find('ul').append(entryTemplate(action)) | ||
| }) | ||
|
|
||
| $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.
| 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 :)
skjnldsv
left a comment
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!!
GretaD
left a comment
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 👍
PVince81
left a comment
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..selectorwas deprecated in 1.9 and removed in 3. I removed an assertion that relied on that.doneand have the test framework await the results