diff --git a/4chan_x.js b/4chan_x.js index cdcb45f2b..49ee726b2 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1106,10 +1106,11 @@ var dialog, id, s, selection, selectionID, ta, target, text, _ref; e.preventDefault(); target = e.target; - if (!(dialog = $('#qr'))) { + if (dialog = $('#qr')) { + qr.autohide.unset(); + } else { dialog = qr.dialog(target); } - qr.autohide.unset(); id = target.textContent; text = ">>" + id + "\n"; selection = window.getSelection(); diff --git a/script.coffee b/script.coffee index 2440e5a1e..1272d5f2d 100644 --- a/script.coffee +++ b/script.coffee @@ -824,9 +824,10 @@ qr = quote: (e) -> e.preventDefault() {target} = e - unless dialog = $ '#qr' + if dialog = $ '#qr' + qr.autohide.unset() + else dialog = qr.dialog target - qr.autohide.unset() id = target.textContent text = ">>#{id}\n"