This commit is contained in:
James Campos 2010-11-12 05:02:06 -08:00
parent 037b841f63
commit 5e40566bf6
2 changed files with 7 additions and 4 deletions

View File

@ -497,8 +497,9 @@ quickReply = (e) ->
remove script remove script
m $('input[name=recaptcha_response_field]', clone), m $('input[name=recaptcha_response_field]', clone),
listener: ['keydown', recaptchaListener] listener: ['keydown', recaptchaListener]
clone.addEventListener 'submit', formSubmit, true m clone,
clone.target = 'iframe' listener: ['submit', formSubmit]
target: 'iframe'
if not g.REPLY if not g.REPLY
#figure out which thread we're replying to #figure out which thread we're replying to
xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]' xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]'

View File

@ -646,8 +646,10 @@
m($('input[name=recaptcha_response_field]', clone), { m($('input[name=recaptcha_response_field]', clone), {
listener: ['keydown', recaptchaListener] listener: ['keydown', recaptchaListener]
}); });
clone.addEventListener('submit', formSubmit, true); m(clone, {
clone.target = 'iframe'; listener: ['submit', formSubmit],
target: 'iframe'
});
if (!g.REPLY) { if (!g.REPLY) {
xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]'; xpath = 'preceding::span[@class="postername"][1]/preceding::input[1]';
input = n('input', { input = n('input', {