summaryrefslogtreecommitdiff
path: root/js/inline.js
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2014-10-03 09:53:11 -0700
committerczaks <marcin@6irc.net>2014-10-07 03:27:34 +0200
commit8d91efc560015411fa2545b151607aba4f91cca7 (patch)
tree1c6f648648baad656f807145a8e4d34183c16410 /js/inline.js
parent26e343d02affb6291226baec587123f6a61e236a (diff)
grab the whole post
Diffstat (limited to 'js/inline.js')
-rw-r--r--js/inline.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/js/inline.js b/js/inline.js
index ff897ca3..55389f36 100644
--- a/js/inline.js
+++ b/js/inline.js
@@ -14,7 +14,7 @@
var postOP = this.pathname.match(/(\d+).html/)[1]
var selector = postNum === postOP
? '.op .body'
- : '#reply_' + postNum + ' .body'
+ : '#reply_' + postNum
var node = this.className
// XXX post hover element is added to the quoting post
@@ -51,7 +51,7 @@
var add = function(link, $target) {
var $clone = $target.clone(true)
$clone.attr({
- "class": 'inline',
+ "class": 'inline post',
id: 'inline_' + link.postNum
})
$clone.insertBefore(link.node)
@@ -59,11 +59,8 @@
$('head').append(
'<style>' +
- '.inline {' +
- ' border: 1px dashed black;' +
- ' margin-left: 1em;' +
- ' padding: 1em;' +
- '}' +
+ '.inline { border: 1px dashed black; }' +
+ 'div.post div.body { white-space: normal; }' +
'</style>')
$('.body a, .mentioned a')