Fix deadquotes showing up in code-tags.

This commit is contained in:
noface 2012-12-15 11:08:14 +01:00
parent 2f0427ad94
commit d155eed8d7
3 changed files with 10 additions and 0 deletions

View File

@ -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.parentElement.className === 'prettyprint') {
$.replace(deadlink, deadlink.firstChild);
continue;
}
quote = deadlink.textContent; quote = deadlink.textContent;
a = $.el('a', { a = $.el('a', {
textContent: "" + quote + "\u00A0(Dead)" textContent: "" + quote + "\u00A0(Dead)"

View File

@ -1,6 +1,7 @@
master master
- noface - noface
Fix Anonymize not working on stubs. Fix Anonymize not working on stubs.
Fix deadquotes showing up in code-tags.
- Mayhem - Mayhem
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.

View File

@ -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.parentElement.className is 'prettyprint'
$.replace deadlink, deadlink.firstChild
continue
quote = deadlink.textContent quote = deadlink.textContent
a = $.el 'a', a = $.el 'a',
# \u00A0 is nbsp # \u00A0 is nbsp