fix qr quote selected text

This commit is contained in:
James Campos 2010-12-23 14:07:13 -08:00
parent b451dc4fe5
commit a85a91530c
2 changed files with 2 additions and 2 deletions

View File

@ -646,7 +646,7 @@ qrText = (link) ->
selection = window.getSelection()
id = x('preceding::span[@id][1]', selection.anchorNode)?.id
text += selection.toString() if id is link.id
text += selection.toString() if id is link.parentNode.id
text

View File

@ -844,7 +844,7 @@
text = '>>' + link.parentNode.id.match(/\d+$/)[0] + '\n';
selection = window.getSelection();
id = (_ref = x('preceding::span[@id][1]', selection.anchorNode)) != null ? _ref.id : void 0;
if (id === link.id) {
if (id === link.parentNode.id) {
text += selection.toString();
}
return text;