summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js/trash.js
Commit message (Collapse)AuthorAgeFilesLines
* Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-151-130/+0
| | | | | | | | | | | | | | | | | - 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
* Fix file selection for infinite scrollingVincent Petry2014-04-281-161/+2
| | | | | | | - 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-021-42/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* 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-111-10/+38
| | | | | | | | 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
|
* Ajax calls for "files" and "files_trashbin" appsVincent Petry2013-09-131-1/+13
| | | | | | | | | | | | | 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
* 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-271-13/+40
|\
| * Whitespace fixesBart Visscher2013-02-221-12/+12
| |
| * 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
| | |
| * | change for loop to make it hopefully work with IEBjörn Schießle2013-02-201-1/+1
| | |
| * | switch to json encoded file listBjörn Schießle2013-02-201-4/+6
| | |
| * | use "|" as delimiter instead of ";", since "|" is not allowed in file/folder ↵Björn Schießle2013-02-201-2/+2
| | | | | | | | | | | | names
| * | add timestamp to function call; fix trash.js to handle multiple delete ↵Björn Schießle2013-02-191-4/+4
| | | | | | | | | | | | operation at once
| * | add missing paramenter to post requestBjörn Schießle2013-02-191-1/+1
| | |
| * | allow user to delete selected files from the trash bin permanentlyBjörn Schießle2013-02-191-3/+27
| |/
* | merge master into trash_fileactionsRobin Appelman2013-02-081-2/+27
|\|
| * allow to delete single files from the trash bin permanentlyBjörn Schießle2013-02-061-0/+25
| |
| * undelete -> restoreThomas Mueller2013-02-011-1/+1
| |
* | Trash: fix opening foldersRobin Appelman2013-01-311-0/+2
| |
* | Trash: enable fileactions while viewing trashRobin Appelman2013-01-311-9/+27
|/