From 984116935870ae9622801e2ed2cb9548986645f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 22 Sep 2017 10:58:05 +0200 Subject: [PATCH] js: only send "click" event to appropriate button (#18894) --- gadjo/static/js/gadjo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gadjo/static/js/gadjo.js b/gadjo/static/js/gadjo.js index 5f6d8b7..859f985 100644 --- a/gadjo/static/js/gadjo.js +++ b/gadjo/static/js/gadjo.js @@ -212,7 +212,7 @@ var gadjo_js = gadjo_js || {}; }).fail(function() { $anchor.trigger('gadjo:dialog-submit-error'); }); } else { - $content.find('button').click(); + $elem.click(); } return false; };