Skip to content

Commit 351a560

Browse files
committed
fix issue #92
1 parent 42b7034 commit 351a560

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ Argon 使用 [GPL V3.0](https://github.com/solstice23/argon-theme/blob/master/LI
6969

7070
# 更新日志
7171

72+
## 20200920 v1.0.3
73+
+ 修复评论回复和 Pjax 冲突
74+
+ 博主登录后自动填充加密文章密码
75+
7276
## 20200830 v1.0.2
7377
+ 增加 双栏(反转) 页面布局
7478
+ 修复和优化文章字数统计

argontheme.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,15 @@ if (argonConfig.headroom){
565565
$(document).on("click" , ".comment-reply" , function(){
566566
reply(this.getAttribute("data-id"));
567567
});
568-
$(document).on("click" , "#post_comment_reply_cancel" , function(){
568+
$(document).on("click pjax:click" , "#post_comment_reply_cancel" , function(){
569569
cancelReply();
570570
});
571+
$(document).on("pjax:click" , function(){
572+
replying = false;
573+
replyID = 0;
574+
$('#post_comment_reply_info').css("display", "none");
575+
$("#post_comment").removeClass("post-comment-force-privatemode-on post-comment-force-privatemode-off");
576+
});
571577
//编辑评论
572578
editing = false , editID = 0;
573579
function edit(commentID){
@@ -609,6 +615,9 @@ if (argonConfig.headroom){
609615
}, 300);
610616
cancelEdit(true);
611617
});
618+
$(document).on("pjax:click" , function(){
619+
cancelEdit(true);
620+
});
612621

613622
//显示/隐藏额外输入框 (评论者网站)
614623
$(document).on("click" , "#post_comment_toggle_extra_input" , function(){

info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version" : "1.0.2",
2+
"version" : "1.0.3",
33
"details_url" : "https://github.com/solstice23/argon-theme/releases",
4-
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v1.0.2/argon.zip"
4+
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v1.0.3/argon.zip"
55
}

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Theme Name: argon
33
Author: solstice23
44
Author URI: https://solstice23.top/
55
Description: 轻盈、简洁、美观的 Wordpress 主题
6-
Version: 1.0.2
6+
Version: 1.0.3
77
License: GNU General Public License v3.0
88
License URI: https://www.gnu.org/licenses/gpl-3.0.html
99
Tags: 简约, 两栏, 侧栏在左边, 浮动侧栏, 文章目录, 自适应, 夜间模式, 可自定义

0 commit comments

Comments
 (0)