diff --git a/4chan_x.user.js b/4chan_x.user.js index cd3fbea16..2d69d00bd 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1963,19 +1963,6 @@ } }); } - $.sync('QR.persona', function(persona) { - var key, val, _results; - if (!QR.el.hidden) { - return; - } - _results = []; - for (key in persona) { - val = persona[key]; - QR.selected[key] = val; - _results.push($("[name=" + key + "]", QR.el).value = val); - } - return _results; - }); QR.status.input = $('input[type=submit]', QR.el); QR.status(); QR.cooldown.init(); diff --git a/script.coffee b/script.coffee index efb5d60cf..f07e424ee 100644 --- a/script.coffee +++ b/script.coffee @@ -1454,20 +1454,13 @@ QR = # save selected reply's data for name in ['name', 'email', 'sub', 'com'] # The input event replaces keyup, change and paste events. - # Firefox 12 will support the input event. - # Oprah? + # XXX Opera? $.on $("[name=#{name}]", QR.el), 'input keyup change paste', -> QR.selected[@name] = @value # Disable auto-posting if you're typing in the first reply # during the last 5 seconds of the cooldown. if QR.cooldown.auto and QR.selected is QR.replies[0] and 0 < QR.cooldown.seconds < 6 QR.cooldown.auto = false - # sync between tabs - $.sync 'QR.persona', (persona) -> - return unless QR.el.hidden - for key, val of persona - QR.selected[key] = val - $("[name=#{key}]", QR.el).value = val QR.status.input = $ 'input[type=submit]', QR.el QR.status()