fix(view): fix pjax support for comment plugins
parent
0a3ac12572
commit
859dc3c286
|
@ -13,7 +13,7 @@ module.exports = class extends Component {
|
|||
return null;
|
||||
}
|
||||
|
||||
return <div class="card">
|
||||
return <div class="card" id="comments">
|
||||
<div class="card-content">
|
||||
<h3 class="title is-5">{__('article.comments')}</h3>
|
||||
{(() => {
|
||||
|
|
|
@ -7,14 +7,16 @@
|
|||
const Pjax = window.Pjax || function() {};
|
||||
pjax = new Pjax({
|
||||
selectors: [
|
||||
'[data-pjax]',
|
||||
'head title',
|
||||
'.columns',
|
||||
'.navbar-start',
|
||||
'.navbar-end',
|
||||
'.searchbox',
|
||||
'.pjax-reload',
|
||||
'#back-to-top',
|
||||
'[data-pjax]',
|
||||
'.pjax-reload'
|
||||
'#comments link',
|
||||
'#comments script',
|
||||
]
|
||||
});
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue