-
Notifications
You must be signed in to change notification settings - Fork 980
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
Fixes #37382 - Update to jQuery 3 #10138
base: develop
Are you sure you want to change the base?
Conversation
I don't see a bump of jquery itself. Is this removing deprecated jquery < 3 usages? |
@ekohl jquery is in theforeman/foreman-js#479 |
$('#check_all_roles').click(function(e) { | ||
$('#check_all_roles').on('click', function(e) { | ||
e.preventDefault(); | ||
$('.role_checkbox').prop('checked', true); | ||
}); | ||
|
||
$('#uncheck_all_roles').click(function(e) { | ||
$('#uncheck_all_roles').on('click', function(e) { |
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.
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.
rebased to include that pr
@@ -1,11 +1,12 @@ | |||
group :assets do | |||
gem 'jquery-ui-rails', '~> 6.0' | |||
gem 'jquery-ui-rails', '~> 7.0' |
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.
Do we still use this? I don't see anything using this. I get the impression that since b55d3ed it's unused because we no longer have require jquery-ui
in the code, but we do still have @import jquery-ui
. So we load the CSS, but not any of the actual JS code?
Can we drop it?
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 think so #10142
$.fn.bind = function(event, func) { | ||
return this.on(event, func); | ||
}; | ||
// used by puppet plugin |
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.
Perhaps open a PR against foreman_puppet to drop this usage?
Will also need to fix the select2 selectors in plugins, I only found 4 places
https://github.com/search?q=org%3Atheforeman+s2id_++NOT+repo%3Atheforeman%2Fforeman&type=code
https://github.com/search?q=org%3Atheforeman+select2-chosen++NOT+repo%3Atheforeman%2Fforeman&type=code
https://github.com/search?q=s2id_++org%3Akatello&type=code
Requires theforeman/foreman-js#479 to test