summaryrefslogtreecommitdiff
path: root/includes/footer.php
diff options
context:
space:
mode:
author阔落 <45323514+BigCoke233@users.noreply.github.com>2019-04-06 16:48:17 +0800
committerGitHub <noreply@github.com>2019-04-06 16:48:17 +0800
commitbf183e944f0cbb924b73c84d2c8cdb7b59d35eb1 (patch)
treef6530294df83ec1991b92c5c8dfa64b224b34e34 /includes/footer.php
parent43156f86f3e167f066e1a655baee71eaebbdad4b (diff)
修复无法评论问题,现在具有data-pjax特性的元素才能使pjax响应
Diffstat (limited to 'includes/footer.php')
-rw-r--r--includes/footer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/footer.php b/includes/footer.php
index eedc7a0..74c3c29 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -8,7 +8,7 @@
<div class="newest-comment">
<?php $this->widget('Widget_Comments_Recent','ignoreAuthor=true')->to($comments); ?>
<?php while($comments->next()): ?>
- <a href="<?php $comments->permalink(); ?>"><?php $comments->gravatar(200); ?></a>
+ <a href="<?php $comments->permalink(); ?>" data-pjax><?php $comments->gravatar(200); ?></a>
<?php endwhile; ?>
</div>
</div>
@@ -44,7 +44,7 @@
<script>
//pjax load
$(document).pjax(
- 'body a',
+ '[data-pjax]',
'#pjax-container',
{
timeout:8000,