Set 'onclick' attribute on backlinks when Quote Inlining is disabled.
This commit is contained in:
parent
ec2cf130d1
commit
afd2ade4c5
@ -3089,7 +3089,11 @@
|
||||
}
|
||||
link = a.cloneNode(true);
|
||||
if (conf['Quote Preview']) $.on(link, 'mouseover', QuotePreview.mouseover);
|
||||
if (conf['Quote Inline']) $.on(link, 'click', QuoteInline.toggle);
|
||||
if (conf['Quote Inline']) {
|
||||
$.on(link, 'click', QuoteInline.toggle);
|
||||
} else {
|
||||
link.setAttribute('onclick', "replyhl('" + post.id + "');");
|
||||
}
|
||||
if (!((container = $('.container', el)) && container.parentNode === el)) {
|
||||
container = $.el('span', {
|
||||
className: 'container'
|
||||
|
||||
@ -2577,6 +2577,8 @@ QuoteBacklink =
|
||||
$.on link, 'mouseover', QuotePreview.mouseover
|
||||
if conf['Quote Inline']
|
||||
$.on link, 'click', QuoteInline.toggle
|
||||
else
|
||||
link.setAttribute 'onclick', "replyhl('#{post.id}');"
|
||||
unless (container = $ '.container', el) and container.parentNode is el
|
||||
container = $.el 'span', className: 'container'
|
||||
$.add container, [$.tn(' '), link]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user