Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
3d8c8767
Unverified
Commit
3d8c8767
authored
Dec 15, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
fix #10
parent
71498192
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
11 deletions
+17
-11
src/main/resources/js/admin/admin.min.js
src/main/resources/js/admin/admin.min.js
+1
-1
src/main/resources/js/admin/article.js
src/main/resources/js/admin/article.js
+13
-5
src/main/resources/js/admin/tablePaginate.js
src/main/resources/js/admin/tablePaginate.js
+3
-5
No files found.
src/main/resources/js/admin/admin.min.js
View file @
3d8c8767
This diff is collapsed.
Click to expand it.
src/main/resources/js/admin/article.js
View file @
3d8c8767
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.6.
0.5, Aug 6
, 2019
* @version 1.6.
1.0, Dec 15
, 2019
*/
*/
admin
.
article
=
{
admin
.
article
=
{
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
...
@@ -121,7 +121,15 @@ admin.article = {
...
@@ -121,7 +121,15 @@ admin.article = {
return
return
}
}
admin
[
fromId
+
'
List
'
].
getList
(
1
)
if
(
document
.
querySelectorAll
(
'
tr
'
).
length
===
2
)
{
const
refreshPage
=
Math
.
max
(
(
admin
[
fromId
+
'
List
'
].
tablePagination
.
currentPage
-
1
),
1
)
admin
[
fromId
+
'
List
'
].
getList
(
refreshPage
)
admin
.
setHashByPage
(
refreshPage
)
}
else
{
admin
[
fromId
+
'
List
'
].
getList
(
admin
[
fromId
+
'
List
'
].
tablePagination
.
currentPage
)
}
},
},
})
})
}
}
...
@@ -419,7 +427,7 @@ admin.article = {
...
@@ -419,7 +427,7 @@ admin.article = {
fun
:
fun
,
fun
:
fun
,
previewMode
:
'
both
'
,
previewMode
:
'
both
'
,
resize
:
false
,
resize
:
false
,
typewriterMode
:
true
typewriterMode
:
true
,
})
})
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
...
...
src/main/resources/js/admin/tablePaginate.js
View file @
3d8c8767
...
@@ -43,9 +43,7 @@ $.extend(TablePaginate.prototype, {
...
@@ -43,9 +43,7 @@ $.extend(TablePaginate.prototype, {
}
}
}
}
$
(
"
#
"
+
this
.
id
+
"
Table
"
).
table
(
tableData
);
$
(
"
#
"
+
this
.
id
+
"
Table
"
).
table
(
tableData
);
},
},
/*
/*
* 初始化分页
* 初始化分页
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment