js: only send "click" event to appropriate button (#18894)

This commit is contained in:
Frédéric Péters 2017-09-22 10:58:05 +02:00
parent e0e9d0cdc9
commit 9841169358
1 changed files with 1 additions and 1 deletions

View File

@ -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;
};