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