Set 'onclick' attribute on backlinks when Quote Inlining is disabled.

This commit is contained in:
Nicolas Stepien 2012-03-14 00:17:05 +01:00
parent ec2cf130d1
commit afd2ade4c5
2 changed files with 7 additions and 1 deletions

View File

@ -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'

View File

@ -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]