summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js
Commit message (Collapse)AuthorAgeFilesLines
* Fix deleting selected files in the trashbinRobin Appelman2015-03-041-0/+4
|
* Distinguish legacy file actions from regular file actionsVincent Petry2014-05-302-12/+10
| | | | | | | | | | | | | | 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-153-34/+27
| | | | | | | | | | | | | | | - 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-155-292/+307
| | | | | | | | | | | | | | | | | - 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-282-161/+128
| | | | | | | - 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
* Fix file summary to use the whole file listVincent Petry2014-04-281-2/+4
| | | | | | - moved the summary code into a new class FileSummary - FileSummary is calculated only once, then updated with add/remove - added new OC.Util namespace for JS utility functions
* Fix localization issues of files_trashbinVolkan Gezer2014-04-171-4/+4
|
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-023-103/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Do not retrieve storage stats for trash binVincent Petry2014-03-281-0/+5
|
* Fixed trashbin titleVincent Petry2014-02-201-1/+31
|
* Trashbin select all now doesn't send file listVincent Petry2014-02-171-64/+77
| | | | | | | | - Fixed "delete" and "restore" actions to not send the file list when all files are selected - When some files are selected, sends the current dir - Removed "dirListing" attribute as the backend is able to compute the value based on the current dir
* Fixed various file name escaping issues in core appsVincent Petry2014-01-101-7/+7
| | | | | | | - Refactored file tr lookup into FileList.findFileEl that uses filterAttr to avoid escaping issues in jQuery selectors - Fixed versions and sharing app to properly escape file names in attributes
* toggle select all checkboxBjoern Schiessle2013-12-121-0/+8
|
* make it possible to select foldersBjoern Schiessle2013-12-021-35/+6
|
* fix delete files from trash binBjoern Schiessle2013-12-021-2/+3
|
* fix restore from files in sub-foldersBjoern Schiessle2013-11-291-2/+2
|
* Deleting all files in trash now only sends a single flagVincent Petry2013-11-112-10/+45
| | | | | | | | 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.
* Fixed clicking on the "Home" breadcrumb in the trash appVincent Petry2013-10-281-5/+0
| | | | | Clicking on the "home" breadcrumb now correctly brings the user back to the files app.
* update file summary after group delete/restoreBjoern Schiessle2013-10-091-0/+2
|
* fix checkboxBjoern Schiessle2013-10-091-37/+15
|
* fix indentionBjoern Schiessle2013-10-091-99/+99
|
* fix group delete/restoreBjoern Schiessle2013-10-091-18/+17
|
* fix delete/restore individual filesBjoern Schiessle2013-10-091-26/+23
|
* 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-132-1/+42
| | | | | | | | | | | | | 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
* Reimplement filesummary in JSkondou2013-08-281-0/+2
| | | | Fix #993
* Add _many_ newlines at the end of fileskondou2013-08-181-1/+1
|
* Use plural translationskondou2013-08-091-10/+2
|
* Merge pull request #3006 from owncloud/===_and_!==_in_files_trashbin-appJörn Friedrich Dreyer2013-08-021-10/+10
|\ | | | | Use !== and === in files_trashbin app
| * Use !== and === in files_trashbin-appkondou2013-07-101-10/+10
| |
* | found some more places where we can disable buttons while performing a actionBjörn Schießle2013-07-261-6/+18
| |
* | Hide Delete Permanently button when Restore happensBjörn Schießle2013-07-261-0/+4
|/
* use history icon in Deleted Files template as wellJan-Christoph Borchardt2013-06-171-1/+1
|
* remove unused loading spinners, just have oneJan-Christoph Borchardt2013-06-171-2/+2
|
* use consistent icon for 'restore'/versions/history, also SVGJan-Christoph Borchardt2013-06-171-1/+1
|
* add event.preventDefault to undelete functionGeorg Ehrke2013-05-271-0/+1
|
* fix https://github.com/owncloud/core/issues/3320Georg Ehrke2013-05-271-0/+1
|
* Translate 'Error' in corekondou2013-04-061-4/+4
|
* Fixed things in alert-messagesroot2013-04-051-4/+4
| | | | | | Two parameters for OC.dialogs.alert, otherwise one will be "undefined". Also fixed missing translation.
* Trash: fix opening foldersRobin Appelman2013-02-281-2/+4
|
* Trash: disable text editor from trash for nowRobin Appelman2013-02-271-0/+4
|
* Merge master into trash_fileactionsRobin Appelman2013-02-272-16/+43
|\
| * Whitespace fixesBart Visscher2013-02-222-15/+15
| |
| * Merge branch 'master' into trash_bin_delete_selectedThomas Mueller2013-02-201-2/+2
| |\
| | * replaced for in loops with normal enumerating loops to fix #1803Bernhard Posselt2013-02-201-3/+3
| | |