aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js/app.js
Commit message (Collapse)AuthorAgeFilesLines
* Move files_trashbin to webpackRoeland Jago Douma2019-02-131-137/+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>
* Fix opening a section again in the Files appDaniel Calviño Sánchez2018-10-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a section is open in the Files app a "show" event is triggered. File list objects handle that event by reloading themselves, but only if the file list was shown at least once. However, the file list objects of plugins are created when the "show" event is triggered for the first time for their section; as the file list objects register their handler for the "show" event when they are created they never handle the first triggered "show" event, as the handler is set while that event is being already handled. Therefore, from the point of view of the handler, the second time that a "show" event was triggered it was seen as if the file list was shown for the first time, and thus it was not reloaded. Now the "shown" property is explicitly set for those file lists that are created while handling a "show" event, which causes them to be reloaded as expected when opening their section again. Note that it is not possible to just reload the file list whenever it is shown; the file list is reloaded also when the directory changes, and this can happen when the web page is initially loaded and the URL is parsed. In that case, if file lists were reloaded when shown for the first time then it could be reloaded twice, one with the default parameters due to the "show" event and another one with the proper parameters once the URL was parsed, and the files that appeard in the list would depend on which response from the server was received the last. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* use dav trashbin api for restoreRobin Appelman2018-09-201-11/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use dav trash api for removing from trashbinRobin Appelman2018-09-201-24/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix trashbin file actionsRobin Appelman2018-08-091-2/+0
| | | | | | Fixes #10491 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fixed scrolling containerJohn Molakvoæ (skjnldsv)2018-07-241-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Added a new action menu in files and trash list.Abijeet2018-06-181-1/+13
| | | | | | | | Uses the new file-multi-select-menu component. Towards #7647 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* filter hidden files on the web interfaceChristoph Wurst2016-04-191-1/+2
| | | | | | | | | | | | | | | | | | add checkbox to toggle show/hide hidden files persist show hidden setting fix settings menu layout test ApiController::showHiddenFiles don't show hidden files by default Store config in Backbone model and inject it into FileList Filter files only temporarily when rending the file list Fix file rename validation
* Make file actions use icon CSS classesRoeland Jago Douma2016-02-251-4/+2
| | | | This makes theming of file actions possible
* Properly join path sectionsVincent Petry2015-11-221-4/+1
| | | | | This prevents double slashes that can mess up path comparisons in some cases.
* Fix scrollto= parameter in trashbin viewJoas Schilling2015-11-021-1/+3
|
* Merge pull request #19647 from owncloud/trashbin-removesidebarThomas Müller2015-10-141-1/+2
|\ | | | | Remove sidebar for trashbin view
| * Remove sidebar for trashbin viewVincent Petry2015-10-081-1/+2
| |
* | Make trashbin's "Restore" an inline actionVincent Petry2015-10-121-13/+21
|/
* Properly translate file actionsVincent Petry2015-09-221-0/+1
|
* Implement file actions dropdownVincent Petry2015-08-101-1/+0
| | | | | | File actions now have two types "inline" and "dropdown". The default is "dropdown". The file actions will now be shown in a dropdown menu.
* l10n: delete permanently fixVolkan Gezer2015-01-111-2/+2
|
* fix accessibility for deleted filesJan-Christoph Borchardt2014-12-181-0/+1
|
* Improve FileActions JS to allow for custom renderingVincent Petry2014-11-241-15/+28
| | | | | | | | | | This improves the OCA.Files.FileActions class to support passing a "render" function in the action object. The default function "_defaultRenderFunction" is used by default and renders actions in the usual actions container. Moved "Rename" and "Delete" to custom render functions.
* Improved Javascript docs for JSDocVincent Petry2014-10-311-0/+6
| | | | | | 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-10/+8
| | | | | | | | | | | | | | 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 file actions for sharing viewsVincent Petry2014-05-301-2/+4
| | | | | | | | FileActions can now be clone to be use for separate file list views without having the side-effect of affecting the main file list view. Added "Open" action in sharing overview file lists to redirect to the regular file list when clicking on a folder.
* Fixed many issues, clean upVincent Petry2014-05-151-2/+6
| | | | | | | | | | | | | | | - 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-0/+78
- 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