unhide qr when reply link clicked
This commit is contained in:
parent
64991aefaf
commit
fc5a2de51d
@ -460,7 +460,7 @@ autohide = ->
|
|||||||
|
|
||||||
|
|
||||||
quickReply = (e) ->
|
quickReply = (e) ->
|
||||||
if !qr = $('#qr')
|
unless qr = $('#qr')
|
||||||
#make quick reply dialog
|
#make quick reply dialog
|
||||||
qr = tag('div')
|
qr = tag('div')
|
||||||
qr.id = 'qr'
|
qr.id = 'qr'
|
||||||
@ -513,6 +513,8 @@ quickReply = (e) ->
|
|||||||
if e
|
if e
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
|
$('input[title=autohide]:checked', qr)?.click()
|
||||||
|
|
||||||
selection = window.getSelection()
|
selection = window.getSelection()
|
||||||
id = x('preceding::span[@id][1]', selection.anchorNode)?.id
|
id = x('preceding::span[@id][1]', selection.anchorNode)?.id
|
||||||
text = selection.toString()
|
text = selection.toString()
|
||||||
|
|||||||
@ -551,6 +551,7 @@
|
|||||||
}
|
}
|
||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
(typeof (_ref3 = ((_ref2 = $('input[title=autohide]:checked', qr)))) === "undefined" || _ref3 === null) ? undefined : _ref3.click();
|
||||||
selection = window.getSelection();
|
selection = window.getSelection();
|
||||||
id = (typeof (_ref3 = ((_ref2 = x('preceding::span[@id][1]', selection.anchorNode)))) === "undefined" || _ref3 === null) ? undefined : _ref3.id;
|
id = (typeof (_ref3 = ((_ref2 = x('preceding::span[@id][1]', selection.anchorNode)))) === "undefined" || _ref3 === null) ? undefined : _ref3.id;
|
||||||
text = selection.toString();
|
text = selection.toString();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user