summaryrefslogtreecommitdiffstats
path: root/apps/files/js
Commit message (Collapse)AuthorAgeFilesLines
...
* | Use proper scroll container when dragging filesJulius Härtl2019-02-201-6/+5
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #12652 from tomasz-grobelny/operation_progress_improvements3John Molakvoæ2019-02-148-106/+243
|\ | | | | Operation progress improvements
| * Merge branch 'master' into operation_progress_improvements3Tomasz Grobelny2019-01-296-13/+35
| |\ | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * | Fix unit testsTomasz Grobelny2018-11-241-4/+7
| | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * | Use reportOperationProgress for removing filesTomasz Grobelny2018-11-241-43/+43
| | | | | | | | | | | | | | | | | | Fix copying files Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * | Properly handle errors (including 500)Tomasz Grobelny2018-11-241-2/+6
| | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * | Add progress reporting to move and copy operationsTomasz Grobelny2018-11-244-33/+60
| | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * | Fix progress bar labelTomasz Grobelny2018-11-244-14/+21
| | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * | Move progress bar to separate componentTomasz Grobelny2018-11-246-22/+108
| | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * | Restructuring code in file-upload.jsTomasz Grobelny2018-11-241-27/+37
| | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* | | Use the new method instead of the deprecated wrapperJoas Schilling2019-02-061-4/+11
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | HBOX-297 trim in webfrontend for new files to stay compatible with windowsChristian Aigner2019-02-012-2/+2
| | |
* | | Add drop zone for favorites quick access in navigationfnuesse2019-02-012-0/+45
| | | | | | | | | | | | Signed-off-by: fnuesse <felix.nuesse@t-online.de>
* | | Fix drop zone shadowfnuesse2019-02-011-0/+2
| | | | | | | | | | | | Signed-off-by: fnuesse <felix.nuesse@t-online.de>
* | | Unify handling of dropping one file or several files on the trash binDaniel Calviño Sánchez2019-02-011-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a single file was dropped on the trash bin the file information was gotten from the original element in the file list. When several files were dropped on the trash bin the file information was gotten from the helper elements being dragged around. The helper element also contain the needed file information when a single file is being dragged, so the handling was unified to always get the file information from the helper elements. As the handling of several files is the same as before there is still the issue of only deleting those files shown in the drag helper instead of all the selected files. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Use full names instead of abbreviations in variable namesDaniel Calviño Sánchez2019-01-311-8/+8
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Make code format more consistent with the rest of the fileDaniel Calviño Sánchez2019-01-311-12/+11
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Replace double quotes with single quotesDaniel Calviño Sánchez2019-01-312-8/+8
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Add missing trailing ";"Daniel Calviño Sánchez2019-01-312-4/+4
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Remove unneeded triggering of eventDaniel Calviño Sánchez2019-01-311-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "droppedOnTrash" event was being triggered when the file list was initialized, but it should be triggered only when the user actually drops a file on the trash bin. Besides that, the event had no effect; only the file list handles it, but as it was not triggered on any element it ended being triggered on the document, and thus not handled. Moreover, even if it had been triggered on the file list it would have been done before the handler was set, so it would not have been handled anyway. And even if it had been handled no data was provided, so the handler would have failed. In conclusion, triggering the event there was not needed, and thus it was removed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Remove duplicated variable declarationDaniel Calviño Sánchez2019-01-311-1/+0
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Remove leftover from a WIPDaniel Calviño Sánchez2019-01-311-1/+0
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Remove hack to prefetch the starred trash iconDaniel Calviño Sánchez2019-01-311-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since 6ad7f32938 SVG icons are directly embedded in "icons-vars.css", so the starred trash icon is now loaded along with the regular trash icon all at once. Therefore it is not needed to explicitly prefetch it using a hidden div. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #12364 from tomasz-grobelny/file_range_selectJohn Molakvoæ2019-01-303-26/+119
|\ \ \ | |_|/ |/| | Ability to select file ranges with mouse or touchscreen
| * | Add more accessible method of selecting file rangesTomasz Grobelny2019-01-243-26/+119
| | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* | | Fix dropping a folder on a folder rowDaniel Calviño Sánchez2019-01-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #13855 from tomasz-grobelny/faster_file_uploadChristoph Wurst2019-01-292-1/+6
|\ \ \ | | | | | | | | Throttle getstoragestats.php calls and allow simultaneous uploads
| * | | Throttle getstoragestats.php calls and allow simultaneous uploadsTomasz Grobelny2019-01-272-1/+6
| | | | | | | | | | | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* | | | changed case on variable to match initial caseimsolost2019-01-251-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: imsolost <imsolost@gmail.com>
* | | | fixed replacement functions to catch all instances of parenthesisimsolost2019-01-251-3/+2
|/ / / | | | | | | | | | Signed-off-by: imsolost <imsolost@gmail.com>
* | | apps: file-upload: fix typo in commentsTigran Mkrtchyan2019-01-211-2/+2
| | | | | | | | | | | | Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
* | | fix testing for undefinedFlorian Schunk2019-01-162-2/+2
| | | | | | | | | | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* | | also remember folder for multiselect actionsFlorian Schunk2019-01-161-1/+6
| | | | | | | | | | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* | | remember last copied to directoryFlorian Schunk2019-01-161-1/+6
| | | | | | | | | | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* | | copy Dialog starts in current directoryFlorian Schunk2019-01-161-1/+1
|/ / | | | | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* | Merge pull request #13212 from nextcloud/bugfix/noid/ie11-files-loadingRoeland Jago Douma2018-12-211-2/+5
|\ \ | | | | | | Files list not rendering if user has favorites navigation unfolded
| * | Replace ChildNode.before with custom before helperJulius Härtl2018-12-211-2/+5
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Only check whatsnew once per hourRoeland Jago Douma2018-12-201-1/+4
|/ / | | | | | | | | | | | | | | Store the last check in the session storage. (Which gets cleared on logout). And only check once an hour. Saves a request to the server on most requests when browsing. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Do not show general warning on free space errorRoeland Jago Douma2018-12-051-1/+1
|/ | | | | | | | Fixes #12588 Probably needs more fixing for the other cases. But this is the quick fix I could come up with for now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #10825 from greenido/fixing-issue-9931Morris Jobke2018-11-221-1/+50
|\ | | | | Copy a file to the same directory
| * JSUnit tests are not compatible with let/const yetMorris Jobke2018-11-191-10/+10
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Translate name for "(copy)"Morris Jobke2018-11-191-11/+12
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Per the last comment on having only (copy) for the first oneIdo Green2018-11-191-5/+19
| | | | | | | | Signed-off-by: Ido Green <greenido@gmail.com>
| * Use the new naming per the comments on #9931Ido Green2018-11-191-5/+5
| | | | | | | | | | | | More details here: https://github.com/nextcloud/server/issues/9931#issuecomment-402318120 Signed-off-by: Ido Green <greenido@gmail.com>
| * fixing issue 9931 - copy a file to the same directoryIdo Green2018-11-191-1/+35
| | | | | | | | | | Signed-off-by: Ido Green <greenido@gmail.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Do not switch to root folder if filelist is already shownJulius Härtl2018-11-222-3/+13
| | | | | | | | | | | | | | Navigating to the root folder is already handled by OCA.Files.Navigation.setActiveItem in case the view doesn't change. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix rendering of the sidebar in Files appDaniel Calviño Sánchez2018-11-222-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a view is rendered it should not be concerned with where it is going to be placed in the document; in general this should be a responsibility of the object using the view. Moreover, when the details view is rendered it should simply prepare a skeleton that includes the root elements provided by the plugins; those elements will be updated by the plugins as needed when a file or a tab is selected. Finally, the details view should not be explicitly rendered. The rendering removes the previous elements, but that is needed only when the details view is in a dirty state, that is, when new plugins were added since the last time that it was rendered. However, that dirty state is internally handled, and the view is automatically rendered again if needed when a file info is set. Due to all that the details view is no longer explicitly rendered when updating it with a different file. Also, as each file list has its own details view, and each details view has its own element, but there can be only one details view/sidebar element in the document, when the file list updates the details view it also replaces the current one in the document with its own details view if needed (that is, if it is not the current one already). Besides that, when the element of a details view is replaced with the element of a different details view the old one should be detached from the document, but never removed. Otherwise the event handlers would not work when that element is attached again later (when changing to a different section in the Files app and then going back to the previous one). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fix whitespace and file action cleanupJulius Härtl2018-11-201-11/+10
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow to hide download option for folders shared by linkJulius Härtl2018-11-201-9/+11
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make number of file list entries depending on the width for grid viewJulius Härtl2018-11-181-1/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>