Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a218bf12
Commit
a218bf12
authored
Jul 29, 2020
by
samdbeckham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes the call to alert from dropzone
parent
b01cc485
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
app/assets/javascripts/dropzone_input.js
app/assets/javascripts/dropzone_input.js
+0
-4
No files found.
app/assets/javascripts/dropzone_input.js
View file @
a218bf12
...
...
@@ -70,7 +70,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
headers
:
csrf
.
headers
,
previewContainer
:
false
,
...
config
,
processing
:
()
=>
$
(
'
.div-dropzone-alert
'
).
alert
(
'
close
'
),
dragover
:
()
=>
{
$mdArea
.
addClass
(
'
is-dropzone-hover
'
);
form
.
find
(
'
.div-dropzone-hover
'
).
css
(
'
opacity
'
,
0.7
);
...
...
@@ -245,8 +244,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
$uploadingErrorMessage
.
html
(
message
);
};
const
closeAlertMessage
=
()
=>
form
.
find
(
'
.div-dropzone-alert
'
).
alert
(
'
close
'
);
const
insertToTextArea
=
(
filename
,
url
)
=>
{
const
$child
=
$
(
child
);
const
textarea
=
$child
.
get
(
0
);
...
...
@@ -266,7 +263,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
formData
.
append
(
'
file
'
,
item
,
filename
);
showSpinner
();
closeAlertMessage
();
axios
.
post
(
uploadsPath
,
formData
)
...
...
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