aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js/filelist.js
Commit message (Collapse)AuthorAgeFilesLines
* Move files_trashbin to webpackRoeland Jago Douma2019-02-131-321/+0
| | | | | | | Combine the 2 js files and the scss. This saves compiling the scss on the go. And going via Nextcloud storage to obtain it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Show original path in trashbin via extraDataMorris Jobke2019-02-051-2/+5
| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use dav trashbin api for restoreRobin Appelman2018-09-201-37/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use dav trash api for removing from trashbinRobin Appelman2018-09-201-49/+31
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use trashbin dav endpoint to list trash in webuiRobin Appelman2018-09-201-43/+39
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fixes the restore loading icon appearing continuously.Abijeet2018-06-181-1/+1
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixes issues found during running of test cases.Abijeet2018-06-181-15/+5
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Previews on for all trashbin filesRoeland Jago Douma2018-06-051-1/+1
| | | | | | | | | | * Previews possible for all files in the trashbin * Set caching * Use the fileid to find the file * Fix test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix trashed file name corruption when rerendering trashbin listVincent Petry2016-06-231-0/+2
| | | | | | | The trashbin code does some gymnastics with the file data at render time. This fix makes sure that the modifications done on the file data are only local to the rendering code and doesn't affect the actual file data from the file list.
* Return false on 401 in file list + trash file listVincent Petry2016-03-031-0/+4
| | | | | This gives a chance to the global ajax error handler to do its work if the session expired.
* Make files app use Webdav for most operationsVincent Petry2015-11-221-1/+71
|
* display checkboxes properly after file restoreHendrik Leppelsack2015-10-011-2/+2
|
* Fix trashbin sidebarVincent Petry2015-08-251-0/+10
| | | | | Do not display size as it is not available. Use display name instead of name to remove the ".d123456" suffix.
* Merge pull request #12527 from owncloud/js-pluginsystemRobin Appelman2014-12-121-0/+1
|\ | | | | Simple Plugin system for Javascript
| * Simple Plugin system for JavascriptVincent Petry2014-12-011-0/+1
| |
* | Fix deleting selected files in the trashbinRobin Appelman2014-12-081-0/+4
|/
* Improved Javascript docs for JSDocVincent Petry2014-10-311-3/+16
| | | | | | Added namespaces so that JSDoc can find them. Fixed a few warnings. Improved some comments.
* correct progress-icon to icon-loading-smallJan-Christoph Borchardt2014-09-221-2/+2
|
* correct delete-icon to icon-delete, fix #11128Jan-Christoph Borchardt2014-09-221-2/+2
|
* Distinguish legacy file actions from regular file actionsVincent Petry2014-05-301-2/+2
| | | | | | | | | | | | | | Legacy file actions are registered by legacy apps through window.FileActions.register(). These actions can only be used by the main file list ("all files") because legacy apps can only deal with a single list / container. New file actions of compatible apps must be registered through OCA.Files.fileActions. These will be used for other lists like the sharing overview. Fixed versions and sharing actions to use OCA.Files.fileActions, which makes them available in the sharing overview list.
* Fixed many issues, clean upVincent Petry2014-05-151-9/+21
| | | | | | | | | | | | | | | - fixed upload and storage statistics - fixed infinite scroll to use the correct contain for scroll detection - fixed unit test that sometimes fail for rename case - controls are now sticky again - fixed selection overlay to be aligned with the table - fixed "select all" checkbox that had id conflicts - fixed public page - fixed global actions permissions detection - fix when URL contains an invalid view id - viewer mode now hides the sidebar (ex: text editor) - added unit tests for trashbin - clean up storage info in template (most is retrieved via ajax call now)
* Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-151-159/+206
| | | | | | | | | | | | | | | | | - FileList is now an instantiable class - FileActions is now in namespace - added App class for trashbin app - moved trashbin overrides into classes extending FileList - replaced many static calls with "this." or "self." to make the classes reusable/extendable - new URL parameter "view" to specify which view is shown, for example "files" or "trashbin" - added OC.Util.History utility class in core for handling history - moved URL handling/routing to OCA.Files.App - popstate will correctly update the current view and notify the view of the URL change so it can update the current dir - added JS unitt tests for the trashbin app - fixed public app to work with the new namespaces
* Set default sort of trashbin to timestamp descendingVincent Petry2014-04-281-0/+1
|
* Cleanup and fix trashbin "clear all files" operationVincent Petry2014-04-281-1/+1
|
* Fixed selection to be based on FileList.filesVincent Petry2014-04-281-2/+2
| | | | | | | | | | The file selection is now based on the internal model array FileList.files instead of the visible checkboxes. This makes it possible to virtually select files that haven't been rendered yet (select all, then deselect a visible one) Added more unit tests for selection (with shift and ctrl as well)
* Fix trashbin previews and "delete selected"Vincent Petry2014-04-281-3/+3
|
* Fix file selection for infinite scrollingVincent Petry2014-04-281-0/+126
| | | | | | | - moved file selection code to FileList - fix selection summary when all files are selected - nextPage now auto-selects files if "select all" checkbox is checked - fixed trashbin to use the same selection logic as FileList
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-60/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app
* Fixed trashbin titleVincent Petry2014-02-201-1/+31
|
* Deleting all files in trash now only sends a single flagVincent Petry2013-11-111-0/+7
| | | | | | | | To prevent having to send the list of all files for deletion, only set a flag "allfiles". This should make it a bit smoother when deleting 5000+ files. Also fixes some "empty trash" message issues.
* Use hash part of URL for IE8 in files appVincent Petry2013-09-131-7/+2
| | | | | | | | | | | | | | | | | | | | Before this fix, the URL wasn't updated in IE8 when navigating into folders. This fix makes use of the hash part of URLs to make this work in IE8, since IE8 doesn't support the history API nor changing the URL without redirecting. From now, both the regular query URL "?dir=somedir" and "#?dir=somedir" will work in both IE8 and non-IE8 browsers. In IE8, query based URLs are automatically converted to hash URLs upon page load. The conversion is done on the server side by redirecting the user to the updated URL. When loading a page directly using a hash URL in the form "#?dir=somedir" in IE8, the server doesn't get the hash, so it will not return any results in that case and rely on ajax to load the first page.
* Ajax calls for "files" and "files_trashbin" appsVincent Petry2013-09-131-0/+29
Frontend: - The files app list now uses ajax calls to refresh the list. - Added support the browser back button (history API). - Added mask + spinner while loading file list Backend: - Added utility function in core JS for parsing query strings. - Moved file list + breadcrumb template data code to helper functions - Fixed some file paths in trashbin app to be similar to the files app