fix(view): fix pjax support for comment plugins

pull/1309/head
ppoffice 2024-07-13 20:27:26 -07:00
parent 0a3ac12572
commit 859dc3c286
No known key found for this signature in database
GPG Key ID: D872802C1F2A16AA
2 changed files with 5 additions and 3 deletions

View File

@ -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>
{(() => {

View File

@ -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) {