Make inline work on new_post event
This commit is contained in:
parent
803c76a800
commit
1506bcc834
@ -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')) {
|
||||||
|
var assign_inline = function() {
|
||||||
$('.body a:not([rel]), .mentioned a')
|
$('.body a:not([rel]), .mentioned a')
|
||||||
.attr('onclick', null)// XXX disable highlightReply
|
.attr('onclick', null)// XXX disable highlightReply
|
||||||
.click(inline)
|
.click(inline)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assign_inline();
|
||||||
|
|
||||||
|
$(document).on('new_post', function(e, post) {
|
||||||
|
assign_inline();
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user