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
5948b363
Unverified
Commit
5948b363
authored
Apr 18, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
https://github.com/b3log/solo/issues/12764
parent
15d36490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/main/webapp/js/page.js
src/main/webapp/js/page.js
+3
-7
No files found.
src/main/webapp/js/page.js
View file @
5948b363
...
...
@@ -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 2.2.0.
2, Apr 2
, 2019
* @version 2.2.0.
3, Apr 18
, 2019
*/
var
Page
=
function
(
tips
)
{
this
.
currentCommentId
=
''
...
...
@@ -322,11 +322,7 @@ $.extend(Page.prototype, {
*/
submitComment
:
function
()
{
var
that
=
this
,
tips
=
this
.
tips
,
type
=
'
article
'
if
(
tips
.
externalRelevantArticlesDisplayCount
===
undefined
)
{
type
=
'
page
'
}
tips
=
this
.
tips
if
(
vditor
.
getValue
().
length
>
1
&&
vditor
.
getValue
().
length
<
500
)
{
$
(
'
#soloEditorAdd
'
).
attr
(
'
disabled
'
,
'
disabled
'
)
...
...
@@ -341,7 +337,7 @@ $.extend(Page.prototype, {
$
.
ajax
({
type
:
'
POST
'
,
url
:
Label
.
servePath
+
'
/
'
+
type
+
'
/comments
'
,
url
:
Label
.
servePath
+
'
/
article
/comments
'
,
cache
:
false
,
contentType
:
'
application/json
'
,
data
:
JSON
.
stringify
(
requestJSONObject
),
...
...
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