Skip to content

Commit

Permalink
fix(view): fix pjax support for comment plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Jul 14, 2024
1 parent 0a3ac12 commit 859dc3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layout/common/comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{(() => {
Expand Down
6 changes: 4 additions & 2 deletions source/js/pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 859dc3c

Please sign in to comment.