grab the whole post

This commit is contained in:
James Campos 2014-10-03 09:53:11 -07:00 committed by czaks
parent 26e343d02a
commit 8d91efc560

View File

@ -14,7 +14,7 @@
var postOP = this.pathname.match(/(\d+).html/)[1] var postOP = this.pathname.match(/(\d+).html/)[1]
var selector = postNum === postOP var selector = postNum === postOP
? '.op .body' ? '.op .body'
: '#reply_' + postNum + ' .body' : '#reply_' + postNum
var node = this.className var node = this.className
// XXX post hover element is added to the quoting post // XXX post hover element is added to the quoting post
@ -51,7 +51,7 @@
var add = function(link, $target) { var add = function(link, $target) {
var $clone = $target.clone(true) var $clone = $target.clone(true)
$clone.attr({ $clone.attr({
"class": 'inline', "class": 'inline post',
id: 'inline_' + link.postNum id: 'inline_' + link.postNum
}) })
$clone.insertBefore(link.node) $clone.insertBefore(link.node)
@ -59,11 +59,8 @@
$('head').append( $('head').append(
'<style>' + '<style>' +
'.inline {' + '.inline { border: 1px dashed black; }' +
' border: 1px dashed black;' + 'div.post div.body { white-space: normal; }' +
' margin-left: 1em;' +
' padding: 1em;' +
'}' +
'</style>') '</style>')
$('.body a, .mentioned a') $('.body a, .mentioned a')