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
d69d6ea5
Unverified
Commit
d69d6ea5
authored
Mar 30, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12743
parent
e0ac84f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
18 deletions
+8
-18
src/main/webapp/js/admin/admin.js
src/main/webapp/js/admin/admin.js
+7
-1
src/main/webapp/js/admin/article.js
src/main/webapp/js/admin/article.js
+1
-17
No files found.
src/main/webapp/js/admin/admin.js
View file @
d69d6ea5
...
...
@@ -19,7 +19,7 @@
* @description index for admin
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.
2.0.0, Apr 5, 2018
* @version 1.
3.0.0, Mar 30, 2019
*/
Util
.
htmlDecode
=
function
(
code
)
{
...
...
@@ -241,6 +241,12 @@ $.extend(Admin.prototype, {
return
Label
.
editorLeaveLabel
}
}
$
(
document
).
ajaxError
(
function
(
event
,
xhr
,
options
,
exc
)
{
if
(
xhr
.
status
!==
200
)
{
$
(
'
#tipMsg
'
).
text
(
xhr
.
status
+
'
:
'
+
exc
)
}
})
},
/**
* @description tools and article collapse
...
...
src/main/webapp/js/admin/article.js
View file @
d69d6ea5
...
...
@@ -190,7 +190,7 @@ admin.article = {
admin
.
article
.
isConfirm
=
false
},
complete
:
function
()
{
complete
:
function
(
jqXHR
,
textStatus
)
{
that
.
_removeDisabled
()
$
(
'
#loadMsg
'
).
text
(
''
)
},
...
...
@@ -560,19 +560,3 @@ admin.register.article = {
$
(
'
#tipMsg
'
).
text
(
Label
.
uploadMsg
)
},
}
function
getUUID
()
{
var
d
=
new
Date
().
getTime
()
var
ret
=
'
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
'
.
replace
(
/
[
xy
]
/g
,
function
(
c
)
{
var
r
=
(
d
+
Math
.
random
()
*
16
)
%
16
|
0
d
=
Math
.
floor
(
d
/
16
)
return
(
c
==
'
x
'
?
r
:
(
r
&
0x3
|
0x8
)).
toString
(
16
)
})
ret
=
ret
.
replace
(
new
RegExp
(
'
-
'
,
'
g
'
),
''
)
return
ret
}
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