Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
C
colt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nala Ginrut
colt
Commits
444fe74d
Verified
Commit
444fe74d
authored
Sep 16, 2019
by
Nala Ginrut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable submit button after exception
parent
a31f1cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
pub/js/editor.js
pub/js/editor.js
+6
-1
No files found.
pub/js/editor.js
View file @
444fe74d
...
...
@@ -120,12 +120,13 @@ function show_msg_layer(msg) {
function
edit_submit
()
{
let
article_content
=
quill
.
root
.
innerHTML
;
alert
(
quill
.
root
.
innerText
);
let
title
=
document
.
getElementById
(
'
edit-article-title
'
).
value
;
let
tags
=
document
.
getElementById
(
'
edit-article-tags
'
).
value
;
let
status
=
document
.
getElementById
(
'
edit-article-status
'
).
value
let
update_timestamp
=
document
.
getElementById
(
'
edit-update-timestamp
'
);
let
submit_button
=
$
(
"
#submit-button
"
)[
0
]
;
let
submit_button
=
document
.
getElementById
(
"
submit-button
"
)
;
submit_button
.
innerText
=
"
Submiting...
"
;
submit_button
.
disabled
=
true
;
...
...
@@ -144,7 +145,11 @@ function edit_submit() {
}),
success
:
function
(
data
)
{
if
(
"
failed
"
===
data
)
{
show_msg_layer
(
"
Edit failed, please check!
"
);
submit_button
.
innerText
=
"
Submit
"
;
submit_button
.
disabled
=
false
;
}
else
if
(
typeof
title
==
'
undefined
'
)
window
.
location
.
pathname
=
"
/about
"
;
else
...
...
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