Merge pull request #862 from ihavenoface/pull-request
Fix deadquotes showing up in code-tags. Close #861
This commit is contained in:
commit
5dd219118d
@ -4316,6 +4316,10 @@
|
|||||||
_ref = $$('.quote.deadlink', post.blockquote);
|
_ref = $$('.quote.deadlink', post.blockquote);
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
deadlink = _ref[_i];
|
deadlink = _ref[_i];
|
||||||
|
if (deadlink.parentNode.className === 'prettyprint') {
|
||||||
|
$.replace(deadlink, Array.prototype.slice.call(deadlink.childNodes));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
quote = deadlink.textContent;
|
quote = deadlink.textContent;
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: "" + quote + "\u00A0(Dead)"
|
textContent: "" + quote + "\u00A0(Dead)"
|
||||||
|
|||||||
@ -5,6 +5,7 @@ master
|
|||||||
Fix selection quoting on Opera.
|
Fix selection quoting on Opera.
|
||||||
Fix history bug with Persistent QR enabled on Chrome.
|
Fix history bug with Persistent QR enabled on Chrome.
|
||||||
Fix posting warning not displaying the reason.
|
Fix posting warning not displaying the reason.
|
||||||
|
Fix deadquotes showing up in code-tags.
|
||||||
|
|
||||||
2.37.0
|
2.37.0
|
||||||
- noface
|
- noface
|
||||||
|
|||||||
@ -3526,6 +3526,11 @@ Quotify =
|
|||||||
node: (post) ->
|
node: (post) ->
|
||||||
return if post.isInlined and not post.isCrosspost
|
return if post.isInlined and not post.isCrosspost
|
||||||
for deadlink in $$ '.quote.deadlink', post.blockquote
|
for deadlink in $$ '.quote.deadlink', post.blockquote
|
||||||
|
|
||||||
|
if deadlink.parentNode.className is 'prettyprint'
|
||||||
|
$.replace deadlink, Array::slice.call deadlink.childNodes
|
||||||
|
continue
|
||||||
|
|
||||||
quote = deadlink.textContent
|
quote = deadlink.textContent
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
# \u00A0 is nbsp
|
# \u00A0 is nbsp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user