fix: 管理员编辑跳过邮箱校验 + 返回顶部 rAF 丝滑滚动 + admin.js 正则笔误 + 页面标题污染
- artalk.js: beforeSubmit 在编辑态跳过昵称/邮箱校验(管理员改评论不再被拦) - floating-tools.js: 返回顶部/去评论改 rAF + easeInOutCubic 自绘,原生 smooth 不可靠 - admin.js: 修 5 处 //s //n 正则笔误(整脚本 SyntaxError 致后台全灰),需 wrangler deploy - artalk.html: 显式传 pageTitle(不再读 document.title,PJAX 竞态致文章页标题被记成「留言」) - artalk.js: conf 缓存合并前剔除 pageKey/pageTitle/pageThumb,杜绝跨页串值
This commit is contained in:
1 parent
e8c991274a
commit
437cd339ad
4 files changed
+59
-10
No files matched your search
@@ -253,6 +253,11 @@
|
||||
server: '{{ .Site.Params.artalk.server }}',
|
||||
site: '{{ .Site.Params.artalk.site }}',
|
||||
pageKey: '{{ .RelPermalink }}',
|
||||
{{/* pageTitle 必须显式传:Artalk 不传时会读 document.title,而 PJAX 切页
|
||||
早期脚本执行时 document.title 还是上一个页面的(经典竞态),历史上
|
||||
数据库里一堆文章页的标题被污染成「留言」就是这么来的。head.html 的
|
||||
<title> 就是纯 .Title,这里与它保持一致。jsonify 防标题里有引号炸模板。 */}}
|
||||
pageTitle: {{ .Title | jsonify }},
|
||||
emoticons: '{{ .Site.Params.artalk.emoticons | absURL }}',
|
||||
aiComment: null
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user