summaryrefslogtreecommitdiff
path: root/openstack_dashboard/static/js/horizon.instances.js
diff options
context:
space:
mode:
authormanchandavishal <manchandavishal143@gmail.com>2023-04-11 22:31:02 +0530
committermanchandavishal <manchandavishal143@gmail.com>2023-04-26 19:43:42 +0530
commit6918015508c71da9a45ffec4ed41147fbe1dfa1f (patch)
treee398aff293d3d56df476874b316731dee22a7339 /openstack_dashboard/static/js/horizon.instances.js
parent7d44796eca10fa61d4d98ab98358c5932746734e (diff)
downloadhorizon-6918015508c71da9a45ffec4ed41147fbe1dfa1f.tar.gz
Fix deprecated use of 'jQuery.fn.change()' shorthand event
This patch changed the code to use the recommended 'on()' method instead of the deprecated shorthand event. For more information about this deprecation, please refer [1]. [1] https://api.jquery.com/change-shorthand/ Change-Id: Ia580ddf2ea5b0fba7feb400db759f59c0f5d958f
Diffstat (limited to 'openstack_dashboard/static/js/horizon.instances.js')
-rw-r--r--openstack_dashboard/static/js/horizon.instances.js4
1 files changed, 2 insertions, 2 deletions
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() {});
});
/*