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
if (App.options.get('useInlining')) {
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();
});
}
});