unhide qr when reply link clicked

This commit is contained in:
James Campos 2010-10-09 00:24:46 -07:00
parent 64991aefaf
commit fc5a2de51d
2 changed files with 4 additions and 1 deletions

View File

@ -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()

View File

@ -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();