diff options
author | Zuul <zuul@review.opendev.org> | 2023-04-24 21:46:41 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-04-24 21:46:41 +0000 |
commit | 604ae7a0d075f15dda117023c97891e4f246b9bd (patch) | |
tree | 669e5e81957cb117606fde048e463ab1dce2e4fc | |
parent | da57fea8e23b73bbf46820fc25cc16a690c5c49b (diff) | |
parent | cf158a213a03473d3df25123a075bdeca847db38 (diff) | |
download | horizon-604ae7a0d075f15dda117023c97891e4f246b9bd.tar.gz |
Merge "Fix "jQuery.fn.submit() event shorthand is deprecated" warning"
-rw-r--r-- | horizon/static/horizon/js/horizon.forms.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/horizon/static/horizon/js/horizon.forms.js b/horizon/static/horizon/js/horizon.forms.js index 8fff1d0f5..cacfb46d8 100644 --- a/horizon/static/horizon/js/horizon.forms.js +++ b/horizon/static/horizon/js/horizon.forms.js @@ -184,12 +184,12 @@ horizon.forms = { horizon.forms.handle_submit = function (el) { var $form = $(el).find("form"); - $form.submit(function () { + $form.on('submit', function () { var $this = $(this); // Disable multiple submissions when launching a form. var button = $this.find('[type="submit"]'); if (button.hasClass('btn-primary') && !button.hasClass('always-enabled')){ - $this.submit(function () { + $this.on('submit', function () { return false; }); button.removeClass('primary').addClass('disabled'); |