Make inline work on new_post event

This commit is contained in:
8chan 2014-10-09 17:48:23 -07:00 committed by czaks
parent 803c76a800
commit 1506bcc834

View File

@ -138,8 +138,16 @@ $(document).ready(function() {
// don't attach to outbound links // don't attach to outbound links
if (App.options.get('useInlining')) { if (App.options.get('useInlining')) {
$('.body a:not([rel]), .mentioned a') var assign_inline = function() {
.attr('onclick', null)// XXX disable highlightReply $('.body a:not([rel]), .mentioned a')
.click(inline) .attr('onclick', null)// XXX disable highlightReply
.click(inline)
}
assign_inline();
$(document).on('new_post', function(e, post) {
assign_inline();
});
} }
}); });