diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-09 16:53:57 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-09 16:53:57 +0000 |
commit | dc2a2fd577375f6f86347d520222a5b844398109 (patch) | |
tree | 62baaeae21cdd7aff6b065ff6248ae22d4a60fed | |
parent | 72903daff96500174e9e4b53e90ad25358a19e9c (diff) | |
parent | 24047b5056681f9b71bcaea7d7ff8c8540824097 (diff) | |
download | horizon-dc2a2fd577375f6f86347d520222a5b844398109.tar.gz |
Merge "Fix "jQuery.fn.click() event shorthand is deprecated" warning"
4 files changed, 4 insertions, 4 deletions
diff --git a/horizon/static/framework/widgets/table/hz-select-all.directive.js b/horizon/static/framework/widgets/table/hz-select-all.directive.js index f4b9464b8..cb1a1ca52 100644 --- a/horizon/static/framework/widgets/table/hz-select-all.directive.js +++ b/horizon/static/framework/widgets/table/hz-select-all.directive.js @@ -83,7 +83,7 @@ var hzTableCtrl = ctrls[0]; var stTableCtrl = ctrls[1]; - element.click(clickHandler); + element.on('click', clickHandler); /* * watch the table state for changes diff --git a/horizon/static/framework/widgets/table/hz-select.directive.js b/horizon/static/framework/widgets/table/hz-select.directive.js index 5cac205ad..aba0272c3 100644 --- a/horizon/static/framework/widgets/table/hz-select.directive.js +++ b/horizon/static/framework/widgets/table/hz-select.directive.js @@ -55,7 +55,7 @@ //////////////////// function link(scope, element, attrs, hzTableCtrl) { - element.click(clickHandler); + element.on('click', clickHandler); // select or unselect row function clickHandler() { diff --git a/horizon/static/horizon/js/horizon.forms.js b/horizon/static/horizon/js/horizon.forms.js index 27a7e9bd6..c7c9431fc 100644 --- a/horizon/static/horizon/js/horizon.forms.js +++ b/horizon/static/horizon/js/horizon.forms.js @@ -228,7 +228,7 @@ horizon.forms.add_password_fields_reveal_buttons = function (el) { $input.closest('div').addClass("has-feedback"); $('<span>').addClass( "form-control-feedback fa fa-eye password-icon" - ).insertAfter($input).click(function () { + ).insertAfter($input).on('click', function () { var $icon = $(this); if ($input.attr('type') === 'password') { diff --git a/horizon/static/horizon/js/horizon.tables.js b/horizon/static/horizon/js/horizon.tables.js index 50a28900f..fb4aa66f9 100644 --- a/horizon/static/horizon/js/horizon.tables.js +++ b/horizon/static/horizon/js/horizon.tables.js @@ -334,7 +334,7 @@ horizon.datatables.confirm = function(action) { modal.css('z-index', child_backdrop.css('z-index')+10); } - modal.find('.' + confirmCssClass).click(function () { + modal.find('.' + confirmCssClass).on('click', function () { var $form = $action.closest('form'); var el = document.createElement("input"); el.type = 'hidden'; |