From fc5a2de51d45cd78ef00fd1d97d78ee8e6b25d43 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 9 Oct 2010 00:24:46 -0700 Subject: [PATCH] unhide qr when reply link clicked --- 4chan_x.coffee | 4 +++- 4chan_x.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index 44120867d..2536ae377 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -460,7 +460,7 @@ autohide = -> quickReply = (e) -> - if !qr = $('#qr') + unless qr = $('#qr') #make quick reply dialog qr = tag('div') qr.id = 'qr' @@ -513,6 +513,8 @@ quickReply = (e) -> if e e.preventDefault() + $('input[title=autohide]:checked', qr)?.click() + selection = window.getSelection() id = x('preceding::span[@id][1]', selection.anchorNode)?.id text = selection.toString() diff --git a/4chan_x.js b/4chan_x.js index c1dcf8d26..3ac900db0 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -551,6 +551,7 @@ } if (e) { e.preventDefault(); + (typeof (_ref3 = ((_ref2 = $('input[title=autohide]:checked', qr)))) === "undefined" || _ref3 === null) ? undefined : _ref3.click(); selection = window.getSelection(); id = (typeof (_ref3 = ((_ref2 = x('preceding::span[@id][1]', selection.anchorNode)))) === "undefined" || _ref3 === null) ? undefined : _ref3.id; text = selection.toString();