From 1506bcc834f2c8f52986fd7e7eabda88dfd46e25 Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 9 Oct 2014 17:48:23 -0700 Subject: [PATCH] Make inline work on new_post event --- js/inline.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/js/inline.js b/js/inline.js index 63b7a8df..57c359b7 100644 --- a/js/inline.js +++ b/js/inline.js @@ -138,8 +138,16 @@ $(document).ready(function() { // don't attach to outbound links if (App.options.get('useInlining')) { - $('.body a:not([rel]), .mentioned a') - .attr('onclick', null)// XXX disable highlightReply - .click(inline) + var assign_inline = function() { + $('.body a:not([rel]), .mentioned a') + .attr('onclick', null)// XXX disable highlightReply + .click(inline) + } + + assign_inline(); + + $(document).on('new_post', function(e, post) { + assign_inline(); + }); } });