diff options
author | Zuul <zuul@review.opendev.org> | 2023-04-26 09:52:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-04-26 09:52:42 +0000 |
commit | 28ca4c270fdaf4034c07b19a947cc8f0847b8fa6 (patch) | |
tree | 1ccd880668631d36da1ca3d40435b445815c35ef | |
parent | 935366e2473e2b358b61533d9f90078f89274986 (diff) | |
parent | f51d5e513ce928f17b28996014d20ec2af5bbc68 (diff) | |
download | horizon-28ca4c270fdaf4034c07b19a947cc8f0847b8fa6.tar.gz |
Merge "Fix deprecation warning for jQuery.fn.keyup() event shorthand"
-rw-r--r-- | horizon/static/horizon/js/horizon.modals.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/static/horizon/js/horizon.modals.js b/horizon/static/horizon/js/horizon.modals.js index 090253e02..a7d5cb4b4 100644 --- a/horizon/static/horizon/js/horizon.modals.js +++ b/horizon/static/horizon/js/horizon.modals.js @@ -417,7 +417,7 @@ horizon.addInitFunction(horizon.modals.init = function() { // Position modal so it's in-view even when scrolled down. $document.on('show.bs.modal', '.modal', function (evt) { // avoid closing the modal when escape is pressed on a select input - $("select", evt.target).keyup(function (e) { + $("select", evt.target).on('keyup', function (e) { if (e.keyCode === 27) { // remove the focus on the select, so double escape close the modal e.target.blur(); |