From 339e7604aa39b8c180d155ff0f0dba139ecd5fc1 Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Wed, 17 May 2023 20:29:02 +0530 Subject: [PATCH] Fix deprecated use of 'jQuery.fn.change()' shorthand event for volume 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]. You will get this deprecation warning while doing multiple CRUD operations for volume resources. [1] https://api.jquery.com/change-shorthand/ Change-Id: Idb131167754a3db6eb9735c82d0c6808bad836a4 --- openstack_dashboard/static/js/horizon.volumes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/static/js/horizon.volumes.js b/openstack_dashboard/static/js/horizon.volumes.js index 7e7c757aeb..8c120e7972 100644 --- a/openstack_dashboard/static/js/horizon.volumes.js +++ b/openstack_dashboard/static/js/horizon.volumes.js @@ -23,7 +23,7 @@ horizon.Volumes = { this.getSelectedType(); this.showTypeDescription(); - $("#id_volume_source_type").change(this._toggleTypeSelector); + $("#id_volume_source_type").on("change", this._toggleTypeSelector); }, /*