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:
parent
a13e01bc46
commit
339e7604aa
@ -23,7 +23,7 @@ horizon.Volumes = {
|
|||||||
|
|
||||||
this.getSelectedType();
|
this.getSelectedType();
|
||||||
this.showTypeDescription();
|
this.showTypeDescription();
|
||||||
$("#id_volume_source_type").change(this._toggleTypeSelector);
|
$("#id_volume_source_type").on("change", this._toggleTypeSelector);
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user