Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
1c5e658e
Commit
1c5e658e
authored
Nov 22, 2016
by
Skia
🤘
Browse files
Remove shitty AJAX upload
parent
da35292c
Changes
1
Hide whitespace changes
Inline
Side-by-side
sas/templates/sas/album.jinja
View file @
1c5e658e
...
@@ -52,30 +52,4 @@
...
@@ -52,30 +52,4 @@
{%
block
script
%}
{%
block
script
%}
{{
super
()
}}
{{
super
()
}}
<script>
$
(
"
form
"
).
submit
(
function
(
event
)
{
event
.
preventDefault
();
var
formData
=
new
FormData
(
$
(
this
)[
0
]);
var
formKeys
=
formData
.
keys
();
var
formEntries
=
formData
.
entries
();
$
.
ajax
({
url
:
''
,
type
:
'
POST
'
,
data
:
formData
,
async
:
false
,
cache
:
false
,
contentType
:
false
,
processData
:
false
,
success
:
function
(
returndata
)
{
alert
(
"
Upload OK!
"
);
},
error
:
function
()
{
alert
(
"
Upload failed
"
);
}
});
return
false
;
});
</script>
{%
endblock
%}
{%
endblock
%}
Write
Preview
Supports
Markdown
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