Make inline work on new_post event
This commit is contained in:
parent
803c76a800
commit
1506bcc834
14
js/inline.js
14
js/inline.js
@ -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();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user