The ? was necessary.
This commit is contained in:
parent
66648b0f17
commit
45e2dbef2e
@ -1628,7 +1628,7 @@
|
|||||||
return QR.submit();
|
return QR.submit();
|
||||||
},
|
},
|
||||||
quote: function(e, blank) {
|
quote: function(e, blank) {
|
||||||
var bq, i, id, qr, s, sel, ss, ta, text, tid, v, _base, _ref;
|
var bq, i, id, qr, s, sel, ss, ta, text, tid, v, _base, _ref, _ref2;
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
@ -1637,7 +1637,7 @@
|
|||||||
text = ">>" + id + "\n";
|
text = ">>" + id + "\n";
|
||||||
sel = getSelection();
|
sel = getSelection();
|
||||||
bq = $.x('ancestor::blockquote', sel.anchorNode);
|
bq = $.x('ancestor::blockquote', sel.anchorNode);
|
||||||
if (id === $.x('preceding-sibling::input', bq).name) {
|
if (id === ((_ref2 = $.x('preceding-sibling::input', bq)) != null ? _ref2.name : void 0)) {
|
||||||
if (s = sel.toString().replace(/\n/g, '\n>')) {
|
if (s = sel.toString().replace(/\n/g, '\n>')) {
|
||||||
text += ">" + s + "\n";
|
text += ">" + s + "\n";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1216,7 +1216,7 @@ QR =
|
|||||||
text = ">>#{id}\n"
|
text = ">>#{id}\n"
|
||||||
sel = getSelection()
|
sel = getSelection()
|
||||||
bq = $.x('ancestor::blockquote', sel.anchorNode)
|
bq = $.x('ancestor::blockquote', sel.anchorNode)
|
||||||
if id == $.x('preceding-sibling::input', bq).name
|
if id == $.x('preceding-sibling::input', bq)?.name
|
||||||
if s = sel.toString().replace /\n/g, '\n>'
|
if s = sel.toString().replace /\n/g, '\n>'
|
||||||
text += ">#{s}\n"
|
text += ">#{s}\n"
|
||||||
{qr} = QR
|
{qr} = QR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user