Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
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
Commits
2816991d
Commit
2816991d
authored
Jun 04, 2013
by
Vanessa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
about #261
parent
4ccace5f
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
233 additions
and
171 deletions
+233
-171
war/src/main/resources/lang_en_US.properties
war/src/main/resources/lang_en_US.properties
+1
-0
war/src/main/resources/lang_zh_CN.properties
war/src/main/resources/lang_zh_CN.properties
+1
-0
war/src/main/webapp/admin-label.ftl
war/src/main/webapp/admin-label.ftl
+2
-1
war/src/main/webapp/js/admin/article.js
war/src/main/webapp/js/admin/article.js
+7
-6
war/src/main/webapp/js/admin/latkeAdmin.js
war/src/main/webapp/js/admin/latkeAdmin.js
+221
-163
war/src/main/webapp/js/admin/latkeAdmin.min.js
war/src/main/webapp/js/admin/latkeAdmin.min.js
+1
-1
No files found.
war/src/main/resources/lang_en_US.properties
View file @
2816991d
...
...
@@ -225,6 +225,7 @@ blogSubtitle1Label=Blog Subtitle:
blogHost1Label
=
Blog Host:
submmitCommentLabel
=
Commit Comment
saveLabel
=
Save
autoSaveLabel
=
Auto Save
tagLabel
=
Tag
tagsLabel
=
Tags
importedLabel
=
Imported
...
...
war/src/main/resources/lang_zh_CN.properties
View file @
2816991d
...
...
@@ -225,6 +225,7 @@ blogSubtitle1Label=\u535a\u5ba2\u5b50\u6807\u9898\uff1a
blogHost1Label
=
\u
535a
\u
5ba2
\u5730\u5740\u
ff1a
submmitCommentLabel
=
\u
63d0
\u
4ea4
\u
8bc4
\u
8bba
saveLabel
=
\u
4fdd
\u
5b58
autoSaveLabel
=
\u
81ea
\u
52a8
\u
4fdd
\u
5b58
tagLabel
=
\u6807\u
7b7e
tagsLabel
=
\u6807\u
7b7e
importedLabel
=
\u
5df2
\u
5bfc
\u5165
...
...
war/src/main/webapp/admin-label.ftl
View file @
2816991d
...
...
@@ -114,7 +114,8 @@
"navLabel": "${navLabel}",
"userLabel": "${userLabel}",
"changeRoleLabel": "${changeRoleLabel}",
"visitorUserLabel": "${visitorUserLabel}"
"visitorUserLabel": "${visitorUserLabel}",
"autoSaveLabel": "${autoSaveLabel}"
};
admin.init();
...
...
war/src/main/webapp/js/admin/article.js
View file @
2816991d
...
...
@@ -32,7 +32,7 @@ admin.article = {
// 自动保存草稿定时器
autoSaveDraftTimer
:
""
,
// 自动保存间隔
AUTOSAVETIME
:
300
0
,
AUTOSAVETIME
:
1000
*
6
0
,
/**
* @description 获取文章并把值塞入发布文章页面
* @param {String} id 文章 id
...
...
@@ -171,7 +171,7 @@ admin.article = {
data
:
JSON
.
stringify
(
requestJSONObject
),
success
:
function
(
result
,
textStatus
)
{
if
(
isAuto
)
{
$
(
"
#tipMsg
"
).
text
(
"
TODO:
"
);
$
(
"
#tipMsg
"
).
text
(
Label
.
autoSaveLabel
);
admin
.
article
.
status
.
id
=
result
.
oId
;
return
;
}
...
...
@@ -246,7 +246,7 @@ admin.article = {
data
:
JSON
.
stringify
(
requestJSONObject
),
success
:
function
(
result
,
textStatus
)
{
if
(
isAuto
)
{
$
(
"
#tipMsg
"
).
text
(
"
TODO:
"
);
$
(
"
#tipMsg
"
).
text
(
Label
.
autoSaveLabel
);
return
;
}
...
...
@@ -450,7 +450,6 @@ admin.article = {
* @description 自动保存草稿件
*/
_autoSaveToDraft
:
function
()
{
console
.
log
(
"
auto
"
);
if
(
$
(
"
#title
"
).
val
().
replace
(
/
\s
/g
,
""
)
===
""
||
admin
.
editors
.
articleEditor
.
getContent
().
replace
(
/
\s
/g
,
""
)
===
""
||
$
(
"
#tag
"
).
val
().
replace
(
/
\s
/g
,
""
)
===
""
)
{
...
...
@@ -458,13 +457,15 @@ admin.article = {
}
if
(
admin
.
article
.
status
.
id
)
{
if
(
admin
.
article
.
status
.
isArticle
)
{
admin
.
article
.
unPublish
(
true
);
admin
.
article
.
status
.
isArticle
=
false
;
admin
.
article
.
setStatus
();
admin
.
article
.
unPublish
(
true
);
}
else
{
admin
.
article
.
update
(
false
,
true
);
}
}
else
{
admin
.
article
.
add
(
false
,
true
);
admin
.
article
.
status
.
isArticle
=
false
;
}
},
/**
...
...
@@ -508,7 +509,7 @@ admin.article = {
cache
:
false
,
success
:
function
(
result
,
textStatus
)
{
if
(
isAuto
)
{
$
(
"
#tipMsg
"
).
text
(
"
TODO:
"
);
$
(
"
#tipMsg
"
).
text
(
Label
.
autoSaveLabel
);
return
;
}
...
...
war/src/main/webapp/js/admin/latkeAdmin.js
View file @
2816991d
This diff is collapsed.
Click to expand it.
war/src/main/webapp/js/admin/latkeAdmin.min.js
View file @
2816991d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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