summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-04-26 09:52:42 +0000
committerGerrit Code Review <review@openstack.org>2023-04-26 09:52:42 +0000
commit28ca4c270fdaf4034c07b19a947cc8f0847b8fa6 (patch)
tree1ccd880668631d36da1ca3d40435b445815c35ef
parent935366e2473e2b358b61533d9f90078f89274986 (diff)
parentf51d5e513ce928f17b28996014d20ec2af5bbc68 (diff)
downloadhorizon-28ca4c270fdaf4034c07b19a947cc8f0847b8fa6.tar.gz
Merge "Fix deprecation warning for jQuery.fn.keyup() event shorthand"
-rw-r--r--horizon/static/horizon/js/horizon.modals.js2
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();