Commit 58a23177 authored by Liang Ding's avatar Liang Ding

🎨 整理注释

parent 2650ae95
...@@ -39,7 +39,7 @@ PS:如果你需要搭建一个社区平台,可以考虑使用 [Sym](https:// ...@@ -39,7 +39,7 @@ PS:如果你需要搭建一个社区平台,可以考虑使用 [Sym](https://
* Markdown / Emoji * Markdown / Emoji
* [聚合分类](https://github.com/b3log/solo/issues/12256) / 标签 * [聚合分类](https://github.com/b3log/solo/issues/12256) / 标签
* 自定义导航页面 / 链接 * 自定义导航链接
* 随机文章 / 相关文章 / 置顶 / 更新提醒 * 随机文章 / 相关文章 / 置顶 / 更新提醒
* 自定义文章永久链接 / 签名档 * 自定义文章永久链接 / 签名档
* 配置站点 SEO 参数 / 公告 / 页脚 * 配置站点 SEO 参数 / 公告 / 页脚
......
...@@ -27,7 +27,7 @@ admin.comment = { ...@@ -27,7 +27,7 @@ admin.comment = {
/* /*
* 打开评论窗口 * 打开评论窗口
* @id 该评论对应的 id * @id 该评论对应的 id
* @fromId 该评论来自文章/草稿/自定义页面 * @fromId 该评论来自文章/草稿
*/ */
open: function (id, fromId) { open: function (id, fromId) {
this.getList(id, fromId) this.getList(id, fromId)
...@@ -37,8 +37,8 @@ admin.comment = { ...@@ -37,8 +37,8 @@ admin.comment = {
/* /*
* 获取评论列表 * 获取评论列表
* *
* @onId 该评论对应的实体 id,可能是文章,也可能是自定义页面 * @onId 该评论对应的文章 id
* @fromId 该评论来自文章/草稿/自定义页面 * @fromId 该评论来自文章/草稿
*/ */
getList: function (onId, fromId) { getList: function (onId, fromId) {
$('#loadMsg').text(Label.loadingLabel) $('#loadMsg').text(Label.loadingLabel)
...@@ -104,8 +104,8 @@ admin.comment = { ...@@ -104,8 +104,8 @@ admin.comment = {
/* /*
* 删除评论 * 删除评论
* @id 评论 id * @id 评论 id
* @fromId 该评论来自文章/草稿/自定义页面 * @fromId 该评论来自文章/草稿
* @articleId 该评论对应的实体 id,可能是文章,也可能是自定义页面 * @articleId 该评论对应的文章 id
*/ */
del: function (id, fromId, articleId) { del: function (id, fromId, articleId) {
var isDelete = confirm(Label.confirmRemoveLabel + Label.commentLabel + '?') var isDelete = confirm(Label.confirmRemoveLabel + Label.commentLabel + '?')
......
...@@ -120,7 +120,7 @@ admin.commentList = { ...@@ -120,7 +120,7 @@ admin.commentList = {
/* /*
* 删除评论 * 删除评论
* @id 评论 id * @id 评论 id
* @type 评论类型:文章/自定义页面 * @type 评论类型:文章
*/ */
del: function (id, type) { del: function (id, type) {
if (confirm(Label.confirmRemoveLabel + Label.commentLabel + '?')) { if (confirm(Label.confirmRemoveLabel + Label.commentLabel + '?')) {
......
...@@ -58,7 +58,7 @@ var Util = { ...@@ -58,7 +58,7 @@ var Util = {
}, },
/** /**
* 初始化 Pjax * 初始化 Pjax
* @param cb 除文章和自定义页面外的其他页面加载回调 * @param cb 除文章外的其他页面加载回调
*/ */
initPjax: function (cb) { initPjax: function (cb) {
if ($('#pjax').length === 1) { if ($('#pjax').length === 1) {
......
...@@ -88,7 +88,7 @@ $.extend(Page.prototype, { ...@@ -88,7 +88,7 @@ $.extend(Page.prototype, {
} }
}, },
/* /*
* @description 文章/自定义页面加载 * @description 文章加载
*/ */
load: function () { load: function () {
var that = this var that = this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment