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

View File

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