summaryrefslogtreecommitdiffstats
path: root/apps/files
Commit message (Collapse)AuthorAgeFilesLines
* [tx-robot] updated from transifexNextcloud bot2018-06-138-2/+8
|
* [tx-robot] updated from transifexNextcloud bot2018-06-122-0/+2
|
* Merge pull request #9807 from nextcloud/fix-highlighting-of-the-upload-drop-zoneJohn Molakvoæ2018-06-112-16/+36
|\ | | | | Fix highlighting of the upload drop zone
| * Do not show an error message when draging and dropping textDaniel Calviño Sánchez2018-06-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | When the browser reports a drag of items other than files (for example, text) and then triggers a drop event with no files no error message should be shown to the user, as in that case there would be no highlight of the drop zone and no indication that the drop would be valid (except for the mouse cursor); the error message should be shown only when the drop event with no files follows a file drag. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Remove no longer needed special handling for FirefoxDaniel Calviño Sánchez2018-06-081-15/+8
| | | | | | | | | | | | | | | | | | | | The highlighting was removed in Firefox when the cursor was no longer moving to handle the behaviour of reporting a file drag and then providing no files in the drop event. That behaviour (which was only present in Firefox 48 and 49) is already handled with the "dropnofiles" callback, so that special handling is no longer needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Use "dropnofiles" callback to disable the drop state in the UIDaniel Calviño Sánchez2018-06-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a file is dragged from the desktop to the file list the file list is highlighted, and when the file is finally dropped or the drag operation is cancelled the highlighting is removed. In some cases, due to a wrong implementation, a browser may end a file drag with a drop with no files (for example, when a folder or text is dragged), which would cause the highlight to not be removed. Now those cases are handled with the "dropnofiles" callback, which restores the UI and also shows a message to the user. The error message is just a generic one, as in some cases it is not even possible to know whether the problem came from a text drag or a folder drag, and whether the problem appears or not depends on the browser, version and even operating system. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Add callback to clean up after misbehaved drag and drop eventsDaniel Calviño Sánchez2018-06-081-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The jQuery Plugin triggers the "dragover" callback when the browser triggers the "dragover" event and the types in their DataTransfer include a "Files" item. It also triggers the "drop" callback when the browser triggers the "drop" event and the list of files in its DataTransfer is not empty. Unfortunately some browsers may trigger "dragover" events with a DataTransfer that includes a "Files" item and then trigger a "drop" event with an empty list of files. When that happens the actions performed in the "dragXXX" callbacks could be left hanging if they were expected to be finished in the "drop" callback (for example, if the drop zone was highlighted during the drag to be then restored when the file was finally dropped). This commit adds the "dropnofiles" callback to be able to handle those situations. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Remove duplicated codeDaniel Calviño Sánchez2018-06-081-6/+1
| | | | | | | | | | | | | | "disableDropState" was set as the event handler in 8d4e5747f386a0, but the duplicated code was accidentally added back in 786e858d23c4a4. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | [tx-robot] updated from transifexNextcloud bot2018-06-092-0/+2
|/
* [tx-robot] updated from transifexNextcloud bot2018-06-084-2/+46
|
* [tx-robot] updated from transifexNextcloud bot2018-06-072-2/+6
|
* [tx-robot] updated from transifexNextcloud bot2018-06-062-0/+4
|
* [tx-robot] updated from transifexNextcloud bot2018-06-044-8/+8
|
* [tx-robot] updated from transifexNextcloud bot2018-05-312-0/+2
|
* [tx-robot] updated from transifexNextcloud bot2018-05-302-0/+2
|
* [tx-robot] updated from transifexNextcloud bot2018-05-292-0/+2
|
* [tx-robot] updated from transifexNextcloud bot2018-05-266-6/+8
|
* [tx-robot] updated from transifexNextcloud bot2018-05-2510-0/+10
|
* [tx-robot] updated from transifexNextcloud bot2018-05-2312-36/+204
|
* [tx-robot] updated from transifexNextcloud bot2018-05-222-12/+12
|
* [tx-robot] updated from transifexNextcloud bot2018-05-202-0/+4
|
* [tx-robot] updated from transifexNextcloud bot2018-05-1812-12/+12
|
* [tx-robot] updated from transifexNextcloud bot2018-05-1712-80/+80
|
* [tx-robot] updated from transifexNextcloud bot2018-05-122-18/+18
|
* [tx-robot] updated from transifexNextcloud bot2018-05-102-6/+34
|
* Merge pull request #9029 from nextcloud/settings-restructureMorris Jobke2018-05-072-2/+2
|\ | | | | Restructure server settings
| * Fix settings testsJulius Härtl2018-05-031-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Move files settings to main server settingsJulius Härtl2018-05-031-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix jsunit testsJulius Härtl2018-05-071-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Move quota icon to coreJulius Härtl2018-05-033-5/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #9248 from nextcloud/fix-files-ellipsisRoeland Jago Douma2018-04-242-84/+27
|\ | | | | Fix ellipsis in filename column
| * Add min-width to trick the table width calculation in safariJulius Härtl2018-04-221-11/+14
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Use flex based layout inside the filename table cellJulius Härtl2018-04-192-84/+24
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix race condition when preparing upload folderDaniel Calviño Sánchez2018-04-221-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before any upload is submitted the upload is registered in a list of known uploads; this is needed to retrieve the upload object at several points of the upload process. When a chunked upload is submitted first a directory to upload all the chunks is created and, once that is done, the chunks are sent; in order to send a chunk the upload object needs to be retrieved from the list of known uploads. When all the active uploads were finished the list of known uploads was cleared. However, an upload is not active until it actually starts sending the data, so while waiting for the upload directory to be created the upload is already in the list of known uploads yet not active. Due to all this, if the active uploads finished while another pending upload was waiting for the upload directory to be created that pending upload would be removed from the list of known uploads too, and once the directory was created and thus the chunks were sent a field of a null upload object would be accessed thus causing a failure. Instead of removing all the known uploads at once when the active uploads finish now each upload is explicitly removed when it finishes. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | [tx-robot] updated from transifexNextcloud bot2018-04-222-4/+4
| |
* | [tx-robot] updated from transifexNextcloud bot2018-04-214-2/+12
|/
* Ensure proper color contrast according to WCAG AAJan-Christoph Borchardt2018-04-183-9/+12
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* [tx-robot] updated from transifexNextcloud bot2018-04-164-4/+4
|
* Merge pull request #8452 from sagorika1996/folderMorris Jobke2018-04-111-0/+2
|\ | | | | Descend into newly created folder by clicking enter again
| * updated jsSagorika Das2018-03-011-5/+1
| | | | | | | | Signed-off-by: Sagorika Das <sagorika1996@gmail.com>
| * New folder creation flowSagorika Das2018-03-011-0/+6
| | | | | | | | | | Descend into newly created folder by clicking enter again. Signed-off-by: Sagorika Das <sagorika1996@gmail.com>
* | [tx-robot] updated from transifexNextcloud bot2018-04-112-70/+120
| |
* | [tx-robot] updated from transifexNextcloud bot2018-04-092-2/+70
| |
* | [tx-robot] updated from transifexNextcloud bot2018-04-082-0/+10
| |
* | [tx-robot] updated from transifexNextcloud bot2018-04-072-2/+4
| |
* | Merge pull request #9082 from nextcloud/feature/8795/new_webdav_url_in_webRoeland Jago Douma2018-04-053-1/+8
|\ \ | | | | | | Show the new dav url in the web UI
| * | Show the new dav url in the web UIRoeland Jago Douma2018-04-053-1/+8
| | | | | | | | | | | | | | | | | | Fixes #8795 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #9085 from ↵Morris Jobke2018-04-051-7/+1
|\ \ \ | |/ / |/| | | | | | | | nextcloud/fix-progress-bar-hidden-before-the-upload-ends Fix progress bar hidden before the upload ends
| * | Fix progress bar hidden before the upload endsDaniel Calviño Sánchez2018-04-051-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The jQuery File Upload plugin triggers the "stop" event once there are no more files being uploaded (even if some of them were added when another upload was already in progress). Therefore, the progress bar should be hidden in the "fileuploadstop" callback. In some cases the "stop" event is not triggered and thus the progress bar is not hidden once no more files are being uploaded. This is caused by a race condition and it will be fixed in another commit; except in buggy cases like that one (that need to be fixed anyway) it is safe to hide the progress bar in the "fileuploadstop" callback. In any case, note that the callbacks in "fileuploaddone" may be called after the "stop" event was triggered and handled when using chunked uploads. In that case once all the chunks are uploaded the assembled file is moved to its final destination, so its promise could be resolved after the "stop" event was triggered. Therefore a different approach would be needed to keep the progress bar visible until the chunked upload is truly finished, but for the time being the current one is good enough. Before this commit the progress bar was being hidden when the first upload finished, either successfully or with an error, no matter if there were other files being uploaded too. The progress bar was being explicitly hidden also when the upload was cancelled. When an upload is cancelled all the single uploads are aborted, which triggers a "fail" event for each of them. However, the "stop" event is always triggered when no more files are being uploaded, so it is triggered too once all the single uploads were aborted. As all the single uploads are immediately aborted in a loop when the general upload is cancelled it makes no difference to hide the progress bar when the first single upload is aborted or when all the single uploads were aborted, so the progress bar is no longer explicitly hidden in the former case. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | [tx-robot] updated from transifexNextcloud bot2018-04-052-0/+2
|/ /