diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-09 19:09:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-09 19:09:48 +0000 |
commit | a80ffceac45f92c4d41de8c84f76fae7565e13b9 (patch) | |
tree | 70ed689a0f3cb8543f73722c3ced879e7ee6db58 | |
parent | 456f4b442fd1ff68055a7888deb074978f90d1a2 (diff) | |
parent | ba47352a73f4dd3c499c54f7d68e2bca0b1fb879 (diff) | |
download | horizon-a80ffceac45f92c4d41de8c84f76fae7565e13b9.tar.gz |
Merge "Fix deprecated use of 'jQuery.fn.change()' shorthand event"
-rw-r--r-- | horizon/static/horizon/js/horizon.forms.js | 4 | ||||
-rw-r--r-- | horizon/static/horizon/js/horizon.modals.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/horizon/static/horizon/js/horizon.forms.js b/horizon/static/horizon/js/horizon.forms.js index c7c9431fc..e3c029b03 100644 --- a/horizon/static/horizon/js/horizon.forms.js +++ b/horizon/static/horizon/js/horizon.forms.js @@ -279,7 +279,7 @@ horizon.forms.init_themable_select = function ($elem) { // Set the select if necessary if ($select.val() !== value) { - $select.val(value).change(); + $select.val(value).trigger("change"); } }); @@ -318,7 +318,7 @@ horizon.forms.init_themable_select = function ($elem) { } // Add the new list to the dropdown. - $select.siblings('.dropdown-menu').html(list).change(); + $select.siblings('.dropdown-menu').html(list).trigger("change"); $select.trigger('change'); }); diff --git a/horizon/static/horizon/js/horizon.modals.js b/horizon/static/horizon/js/horizon.modals.js index 87e546ca2..629023905 100644 --- a/horizon/static/horizon/js/horizon.modals.js +++ b/horizon/static/horizon/js/horizon.modals.js @@ -349,7 +349,7 @@ horizon.addInitFunction(horizon.modals.init = function() { json_data = JSON.parse(data); field_to_update = $("#" + add_to_field_header); field_to_update.append("<option value='" + json_data[0] + "'>" + json_data[1] + "</option>"); - field_to_update.change(); + field_to_update.trigger("change"); field_to_update.val(json_data[0]); } else { horizon.modals.success(data, textStatus, jqXHR); |