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 }) {
...
@@ -70,7 +70,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
headers
:
csrf
.
headers
,
headers
:
csrf
.
headers
,
previewContainer
:
false
,
previewContainer
:
false
,
...
config
,
...
config
,
processing
:
()
=>
$
(
'
.div-dropzone-alert
'
).
alert
(
'
close
'
),
dragover
:
()
=>
{
dragover
:
()
=>
{
$mdArea
.
addClass
(
'
is-dropzone-hover
'
);
$mdArea
.
addClass
(
'
is-dropzone-hover
'
);
form
.
find
(
'
.div-dropzone-hover
'
).
css
(
'
opacity
'
,
0.7
);
form
.
find
(
'
.div-dropzone-hover
'
).
css
(
'
opacity
'
,
0.7
);
...
@@ -245,8 +244,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
...
@@ -245,8 +244,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
$uploadingErrorMessage
.
html
(
message
);
$uploadingErrorMessage
.
html
(
message
);
};
};
const
closeAlertMessage
=
()
=>
form
.
find
(
'
.div-dropzone-alert
'
).
alert
(
'
close
'
);
const
insertToTextArea
=
(
filename
,
url
)
=>
{
const
insertToTextArea
=
(
filename
,
url
)
=>
{
const
$child
=
$
(
child
);
const
$child
=
$
(
child
);
const
textarea
=
$child
.
get
(
0
);
const
textarea
=
$child
.
get
(
0
);
...
@@ -266,7 +263,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
...
@@ -266,7 +263,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
formData
.
append
(
'
file
'
,
item
,
filename
);
formData
.
append
(
'
file
'
,
item
,
filename
);
showSpinner
();
showSpinner
();
closeAlertMessage
();
axios
axios
.
post
(
uploadsPath
,
formData
)
.
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