diff options
author | Zuul <zuul@review.opendev.org> | 2023-04-27 05:35:54 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-04-27 05:35:54 +0000 |
commit | 2cd709380401f21660eaa63805570857f2775cc2 (patch) | |
tree | b818a505f587dc51a1fbaa82c0ce2e6bb8816d65 | |
parent | da7173515df08b32d9eb23d403e38512c772965a (diff) | |
parent | 6918015508c71da9a45ffec4ed41147fbe1dfa1f (diff) | |
download | horizon-2cd709380401f21660eaa63805570857f2775cc2.tar.gz |
Merge "Fix deprecated use of 'jQuery.fn.change()' shorthand event"
4 files changed, 7 insertions, 7 deletions
diff --git a/horizon/static/horizon/js/horizon.users.js b/horizon/static/horizon/js/horizon.users.js index 4059d6256..7e8e8588c 100644 --- a/horizon/static/horizon/js/horizon.users.js +++ b/horizon/static/horizon/js/horizon.users.js @@ -15,13 +15,13 @@ horizon.user = { init: function() { - $("#id_password").change(function () { + $("#id_password").on('change', function () { if ($("#id_confirm_password").val() !== "") { horizon.user.check_passwords_match(); } }); - $("#id_confirm_password").change(function () { + $("#id_confirm_password").on('change', function () { horizon.user.check_passwords_match(); }); }, diff --git a/openstack_dashboard/static/js/horizon.instances.js b/openstack_dashboard/static/js/horizon.instances.js index 82ee94962..88f7af42a 100644 --- a/openstack_dashboard/static/js/horizon.instances.js +++ b/openstack_dashboard/static/js/horizon.instances.js @@ -78,9 +78,9 @@ horizon.addInitFunction(horizon.instances.init = function () { update_launch_source_displayed_fields(this); }); - $('.workflow #id_source_type').change(); + $('.workflow #id_source_type').on('change', function() {}); horizon.modals.addModalInitFunction(function (modal) { - $(modal).find("#id_source_type").change(); + $(modal).find("#id_source_type").on('change', function() {}); }); /* diff --git a/openstack_dashboard/static/js/horizon.metering.js b/openstack_dashboard/static/js/horizon.metering.js index c33902190..e2adcf396 100644 --- a/openstack_dashboard/static/js/horizon.metering.js +++ b/openstack_dashboard/static/js/horizon.metering.js @@ -37,7 +37,7 @@ horizon.metering = { } }, add_change_event_to_period_dropdown: function() { - $("#id_period").change(function(evt) { + $("#id_period").on('change', function(evt) { if (horizon.metering.show_or_hide_date_fields()) { evt.stopPropagation(); } diff --git a/openstack_dashboard/static/js/horizon.networktopology.js b/openstack_dashboard/static/js/horizon.networktopology.js index bcccb7bc1..6a8f6b1e2 100644 --- a/openstack_dashboard/static/js/horizon.networktopology.js +++ b/openstack_dashboard/static/js/horizon.networktopology.js @@ -131,12 +131,12 @@ horizon.network_topology = { self.delete_balloon(); }); - angular.element('#toggle_labels').change(function() { + angular.element('#toggle_labels').on('change', function() { horizon.cookies.put('show_labels', this.checked); self.refresh_labels(); }); - angular.element('#toggle_networks').change(function() { + angular.element('#toggle_networks').on('change', function() { horizon.cookies.put('are_networks_collapsed', this.checked); self.refresh_networks(); self.refresh_labels(); |