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
This commit is contained in:
manchandavishal 2023-05-17 20:29:02 +05:30
parent a13e01bc46
commit 339e7604aa
1 changed files with 1 additions and 1 deletions

View File

@ -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);
},
/*