From cbe51e7822c62b4dd67005d3b29b805828a0c3b7 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 25 Aug 2011 15:49:30 -0700 Subject: [PATCH] better --- 4chan_x.user.js | 4 ---- script.coffee | 3 --- 2 files changed, 7 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 8687d9730..33a7c1d07 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1426,9 +1426,6 @@ }, submit: function(e) { var id, msg, op; - if (this.id !== 'qr_form') { - return; - } if (msg = qr.postInvalid()) { if (typeof e.preventDefault === "function") { e.preventDefault(); @@ -2798,7 +2795,6 @@ $.addStyle(main.css); if ((form = $('form[name=post]')) && (canPost = !!$('#recaptcha_response_field'))) { Recaptcha.init(); - $.bind(form, 'submit', qr.submit); } threading.init(); if (g.REPLY && (id = location.hash.slice(1)) && /\d/.test(id[0]) && !$.id(id)) { diff --git a/script.coffee b/script.coffee index 0fe5c5c68..b9de6f0aa 100644 --- a/script.coffee +++ b/script.coffee @@ -1176,8 +1176,6 @@ qr = $.replace oldFile, newFile submit: (e) -> - return unless @id is 'qr_form' - #XXX `e` won't exist if we're here from `qr.submit.call form`. if msg = qr.postInvalid() e.preventDefault?() @@ -2207,7 +2205,6 @@ main = #recaptcha may be blocked, eg by noscript if (form = $ 'form[name=post]') and (canPost = !!$ '#recaptcha_response_field') Recaptcha.init() - $.bind form, 'submit', qr.submit #major features threading.init()