Fix backlinks added into inlined quotes.

This commit is contained in:
Nicolas Stepien 2011-08-31 01:19:17 +02:00
parent ee69782280
commit 652db9790d
3 changed files with 5 additions and 4 deletions

View File

@ -2154,7 +2154,7 @@
if (conf['Quote Inline']) { if (conf['Quote Inline']) {
$.bind(link, 'click', quoteInline.toggle); $.bind(link, 'click', quoteInline.toggle);
} }
if (!(container = $('.container', el))) { if (!((container = $('.container', el)) && container.parentNode === el)) {
container = $.el('span', { container = $.el('span', {
className: 'container' className: 'container'
}); });

View File

@ -1,8 +1,9 @@
master master
- mayhem - mayhem
fix updater refreshing 404'd threads
distinguishable unread favicons on white backgrounds
backlink formatting backlink formatting
distinguishable unread favicons on white backgrounds
fix updater refreshing 404'd threads
fix backlinks added into inlined quotes
2.18.3 2.18.3
- mayhem - mayhem

View File

@ -1705,7 +1705,7 @@ quoteBacklink =
$.bind link, 'mouseout', quotePreview.mouseout $.bind link, 'mouseout', quotePreview.mouseout
if conf['Quote Inline'] if conf['Quote Inline']
$.bind link, 'click', quoteInline.toggle $.bind link, 'click', quoteInline.toggle
unless container = $ '.container', el unless (container = $ '.container', el) and container.parentNode is el
container = $.el 'span', className: 'container' container = $.el 'span', className: 'container'
root = $('.reportbutton', el) or $('span[id^=no]', el) root = $('.reportbutton', el) or $('span[id^=no]', el)
$.after root, container $.after root, container