mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Merged in fix-dnd (pull request #10)
Fix missing attribut in xhr request for dnd Approved-by: Stefan Ritt
This commit is contained in:
commit
7c6b4e89e7
@ -121,6 +121,8 @@ function upload(files) {
|
|||||||
|
|
||||||
formData.append('cmd', "Upload"); // Command for server to recognize this as an file upload
|
formData.append('cmd', "Upload"); // Command for server to recognize this as an file upload
|
||||||
|
|
||||||
|
formData.append('Author', $("input[name^='Author']").attr('value')); // Other attributes missing should be fine, but author is needed
|
||||||
|
|
||||||
if (!!window.FormData) {
|
if (!!window.FormData) {
|
||||||
var URL = 'upload.html?next_attachment=' + parent.next_attachment;
|
var URL = 'upload.html?next_attachment=' + parent.next_attachment;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user