1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-17 19:29:28 +01:00

Make inline work on new_post event

This commit is contained in:
8chan 2014-10-09 17:48:23 -07:00
parent 426f33ca3b
commit d26762af15

View File

@ -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();
});
}
});