Commit graph

4509 commits

Author SHA1 Message Date
Nextcloud bot
affd0dcaf2
[tx-robot] updated from transifex 2019-03-01 01:12:57 +00:00
Nextcloud bot
1d33283332
[tx-robot] updated from transifex 2019-02-28 01:12:58 +00:00
Nextcloud bot
e7d5630947
[tx-robot] updated from transifex 2019-02-21 01:12:22 +00:00
Nextcloud bot
53b295456d
[tx-robot] updated from transifex 2019-02-19 01:12:27 +00:00
Nextcloud bot
bcc1250173
[tx-robot] updated from transifex 2019-02-16 01:12:44 +00:00
Nextcloud bot
2a1c76b499
[tx-robot] updated from transifex 2019-02-15 01:13:12 +00:00
Nextcloud bot
afa91c75e5
[tx-robot] updated from transifex 2019-02-14 01:12:47 +00:00
Nextcloud bot
13af316b8d
[tx-robot] updated from transifex 2019-02-13 01:12:35 +00:00
Nextcloud bot
7192688c98
[tx-robot] updated from transifex 2019-02-12 01:12:47 +00:00
Nextcloud bot
cb67b6776c
[tx-robot] updated from transifex 2019-02-11 01:12:40 +00:00
Nextcloud bot
933ff3d466
[tx-robot] updated from transifex 2019-02-10 01:13:48 +00:00
Nextcloud bot
868b6dbcae
[tx-robot] updated from transifex 2019-02-08 01:12:58 +00:00
Nextcloud bot
707b1c7909
[tx-robot] updated from transifex 2019-02-06 22:18:42 +00:00
Nextcloud bot
ffaff1b2ab
[tx-robot] updated from transifex 2019-02-06 11:27:51 +00:00
Daniel Calviño Sánchez
6fb6f3872e Fix dropping a folder on a folder row
When the uploaded files have a relative path (that is, when a folder is
uploaded) it is first ensured that all the parent folders exist, which
is done by trying to create them. When a folder is created in the
currently opened folder the file list is updated and a row for the new
folder is added. However, this was done too when the folder already
existed, which caused the previous row to be removed and a new one added
to replace it.

For security reasons, some special headers need to be set in requests;
this is done automatically for jQuery by handling the "ajaxSend" event
in the document. In the case of DAV requests, if the headers are not set
the server rejects the request with "CSRF check not passed".

When a file or folder is dropped on a folder row the jQuery upload
events are chained from the initial drop event, which has the row as its
target. In order to upload the file jQuery performs a request, which
triggers the "ajaxSend" event in the row; this event then bubbles up to
the document, which is then handled by adding the special headers to the
request.

However, when a folder was dropped on a folder row that folder row was
removed when ensuring that the folder exists. The jQuery upload events
were still triggered on the row, but as it had been removed it had no
parent nodes, and thus the events did not bubble up. Due to this the
"ajaxSend" event never reached the document when triggered on the
removed row, the headers were not set, and the upload failed.

All this is simply fixed by not removing the folder row when trying to
create it if it existed already.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-01-29 14:47:46 +00:00
Nextcloud bot
6bc8e1b5df
[tx-robot] updated from transifex 2019-01-22 01:12:46 +00:00
Nextcloud bot
22ebd26324
[tx-robot] updated from transifex 2019-01-19 01:12:40 +00:00
Nextcloud bot
27aa1cf944
[tx-robot] updated from transifex 2019-01-17 01:12:39 +00:00
Nextcloud bot
5f961a494f
[tx-robot] updated from transifex 2019-01-16 01:12:56 +00:00
Nextcloud bot
054848a387
[tx-robot] updated from transifex 2019-01-15 01:12:35 +00:00
Nextcloud bot
671e375313
[tx-robot] updated from transifex 2019-01-14 01:12:20 +00:00
Nextcloud bot
39b0d4700f
[tx-robot] updated from transifex 2019-01-13 01:13:14 +00:00
Nextcloud bot
fcedd6bc58
[tx-robot] updated from transifex 2019-01-12 01:12:17 +00:00
Nextcloud bot
0b3d91c0b8
[tx-robot] updated from transifex 2019-01-11 01:12:50 +00:00
Nextcloud bot
67c8ca25a2
[tx-robot] updated from transifex 2019-01-08 01:12:22 +00:00
Nextcloud bot
7f81025f10
[tx-robot] updated from transifex 2019-01-06 01:13:25 +00:00
Nextcloud bot
3d5ecac012
[tx-robot] updated from transifex 2019-01-05 01:12:17 +00:00
Nextcloud bot
4cd730c5bd
[tx-robot] updated from transifex 2019-01-04 01:12:48 +00:00
Nextcloud bot
591b4ec18a
[tx-robot] updated from transifex 2019-01-01 01:11:54 +00:00
Nextcloud bot
0c9fb32585
[tx-robot] updated from transifex 2018-12-31 01:12:01 +00:00
Nextcloud bot
d3eb44469e
[tx-robot] updated from transifex 2018-12-30 01:13:01 +00:00
Nextcloud bot
61000a7c1d
[tx-robot] updated from transifex 2018-12-28 01:12:07 +00:00
Nextcloud bot
ed43996cc1
[tx-robot] updated from transifex 2018-12-27 01:12:01 +00:00
Nextcloud bot
e8fc1decf4
[tx-robot] updated from transifex 2018-12-26 01:12:16 +00:00
Nextcloud bot
c099e7cbe9
[tx-robot] updated from transifex 2018-12-24 01:12:08 +00:00
Julius Härtl
faf7a1906f Replace ChildNode.before with custom before helper
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-12-21 13:21:52 +00:00
Nextcloud bot
01fa79d8d6
[tx-robot] updated from transifex 2018-12-21 01:12:05 +00:00
Nextcloud bot
e3d3472ff5
[tx-robot] updated from transifex 2018-12-20 01:12:03 +00:00
Nextcloud bot
0a59b4ec6b
[tx-robot] updated from transifex 2018-12-19 01:12:05 +00:00
Nextcloud bot
f336720697
[tx-robot] updated from transifex 2018-12-17 01:11:50 +00:00
Nextcloud bot
a7e515e8aa
[tx-robot] updated from transifex 2018-12-16 01:12:51 +00:00
Nextcloud bot
a1c9949911
[tx-robot] updated from transifex 2018-12-15 01:11:56 +00:00
Nextcloud bot
cfb1338705
[tx-robot] updated from transifex 2018-12-12 01:11:55 +00:00
Nextcloud bot
f65ec57243
[tx-robot] updated from transifex 2018-12-05 01:12:15 +00:00
Nextcloud bot
70b8588d93
[tx-robot] updated from transifex 2018-12-04 01:12:26 +00:00
Nextcloud bot
34cbcb41cb
[tx-robot] updated from transifex 2018-12-03 01:11:52 +00:00
Nextcloud bot
bcc0956ec0
[tx-robot] updated from transifex 2018-11-30 01:12:17 +00:00
Nextcloud bot
76cd8babd2
[tx-robot] updated from transifex 2018-11-29 01:11:52 +00:00
Nextcloud bot
d572bdea74
[tx-robot] updated from transifex 2018-11-28 01:12:15 +00:00
Nextcloud bot
5fc0565695
[tx-robot] updated from transifex 2018-11-27 01:11:51 +00:00