Highlight quoted post during quote preview. close #81

This commit is contained in:
Nicolas Stepien 2011-05-19 16:08:30 +02:00
parent 1ab233727e
commit 432702dd41
2 changed files with 7 additions and 0 deletions

View File

@ -1837,6 +1837,10 @@
qp = $('#qp');
if (el = d.getElementById(id)) {
qp.innerHTML = el.innerHTML;
if (el.className === 'reply') {
el.className = 'replyhl';
this.setAttribute('onmouseout', "document.getElementById(" + id + ").className='reply'; this.removeAttribute('onmouseout');");
}
} else {
qp.innerHTML = "Loading " + id + "...";
threadID = this.pathname.split('/').pop();

View File

@ -1457,6 +1457,9 @@ quotePreview =
qp = $ '#qp'
if el = d.getElementById id
qp.innerHTML = el.innerHTML
if el.className is 'reply'
el.className = 'replyhl'
@setAttribute 'onmouseout', "document.getElementById(#{id}).className='reply'; this.removeAttribute('onmouseout');"
else
qp.innerHTML = "Loading #{id}..."
threadID = @pathname.split('/').pop()