diff options
| author | 8chan <admin@8chan.co> | 2014-10-09 17:48:23 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-10-11 20:38:02 +0200 |
| commit | 1506bcc834f2c8f52986fd7e7eabda88dfd46e25 (patch) | |
| tree | a5c9002e628f6f1c6ca83f23aacd73f98796fb3b /js/inline.js | |
| parent | 803c76a8001024aa1f5993699a75640d5e68b3cc (diff) | |
Make inline work on new_post event
Diffstat (limited to 'js/inline.js')
| -rw-r--r-- | js/inline.js | 14 |
1 files 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(); + }); } }); |
