From 9b210f15011b13db4b1c5ee03a1cd49cd490441a Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 27 May 2012 16:27:31 +0200 Subject: [PATCH] Fix prettifiyng in quote previews. --- 4chan_x.user.js | 4 ++-- script.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3a99b4a0a..843282890 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3270,6 +3270,7 @@ doc.documentElement.innerHTML = req.response; node = doc.getElementById("p" + id); qp.innerHTML = node.innerHTML; + Main.prettify(); post = { el: qp }; @@ -3287,9 +3288,8 @@ Time.node(post); } if (Conf['File Info Formatting']) { - FileInfo.node(post); + return FileInfo.node(post); } - return Main.prettify(); } }; diff --git a/script.coffee b/script.coffee index ae757c7de..2c0411f8c 100644 --- a/script.coffee +++ b/script.coffee @@ -2478,6 +2478,7 @@ QuotePreview = node = doc.getElementById "p#{id}" qp.innerHTML = node.innerHTML + Main.prettify() post = el: qp if fileInfo = $ '.fileInfo', qp @@ -2491,7 +2492,6 @@ QuotePreview = Time.node post if Conf['File Info Formatting'] FileInfo.node post - Main.prettify() QuoteOP = init: ->