diff --git a/4chan_x.coffee b/4chan_x.coffee index 0429b5aee..045ed71f0 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -497,8 +497,9 @@ quickReply = (e) -> remove script m $('input[name=recaptcha_response_field]', clone), listener: ['keydown', recaptchaListener] - clone.addEventListener 'submit', formSubmit, true - clone.target = 'iframe' + m clone, + listener: ['submit', formSubmit] + target: 'iframe' if not g.REPLY #figure out which thread we're replying to xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]' diff --git a/4chan_x.js b/4chan_x.js index 60e25ef88..a0cc60fb4 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -646,8 +646,10 @@ m($('input[name=recaptcha_response_field]', clone), { listener: ['keydown', recaptchaListener] }); - clone.addEventListener('submit', formSubmit, true); - clone.target = 'iframe'; + m(clone, { + listener: ['submit', formSubmit], + target: 'iframe' + }); if (!g.REPLY) { xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]'; input = n('input', {