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
26e2872d
Unverified
Commit
26e2872d
authored
Dec 15, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/3.6.8-dev' into 3.6.8-dev
parents
7992d2b2
3d8c8767
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
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
src/main/resources/skins/Finding/css/base.css
src/main/resources/skins/Finding/css/base.css
+1
-1
No files found.
src/main/resources/js/admin/admin.min.js
View file @
26e2872d
This diff is collapsed.
Click to expand it.
src/main/resources/js/admin/article.js
View file @
26e2872d
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</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
=
{
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
...
...
@@ -48,7 +48,7 @@ admin.article = {
$
(
'
#tipMsg
'
).
text
(
''
)
$
.
ajax
({
url
:
Label
.
servePath
+
'
/console/article/
'
+
admin
.
article
.
status
.
id
,
admin
.
article
.
status
.
id
,
type
:
'
GET
'
,
cache
:
false
,
success
:
function
(
result
,
textStatus
)
{
...
...
@@ -121,7 +121,15 @@ admin.article = {
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 = {
fun
:
fun
,
previewMode
:
'
both
'
,
resize
:
false
,
typewriterMode
:
true
typewriterMode
:
true
,
})
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
...
...
@@ -473,7 +481,7 @@ admin.article = {
that
.
_addDisabled
()
$
.
ajax
({
url
:
Label
.
servePath
+
'
/console/article/unpublish/
'
+
admin
.
article
.
status
.
id
,
admin
.
article
.
status
.
id
,
type
:
'
PUT
'
,
cache
:
false
,
success
:
function
(
result
,
textStatus
)
{
...
...
src/main/resources/js/admin/tablePaginate.js
View file @
26e2872d
...
...
@@ -43,9 +43,7 @@ $.extend(TablePaginate.prototype, {
}
}
$
(
"
#
"
+
this
.
id
+
"
Table
"
).
table
(
tableData
);
},
/*
* 初始化分页
*/
...
...
@@ -84,7 +82,7 @@ $.extend(TablePaginate.prototype, {
}
});
},
/*
* 更新 table & paginateion
*/
...
...
@@ -101,11 +99,11 @@ $.extend(TablePaginate.prototype, {
groupData
:
data
}]
});
if
(
pageInfo
.
paginationPageCount
===
0
)
{
pageInfo
.
paginationPageCount
=
1
;
}
$
(
"
#
"
+
this
.
id
+
"
Pagination
"
).
paginate
(
"
update
"
,
{
pageCount
:
pageInfo
.
paginationPageCount
,
currentPage
:
currentPage
,
...
...
src/main/resources/skins/Finding/css/base.css
View file @
26e2872d
This diff is collapsed.
Click to expand it.
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