aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Distinguish legacy file actions from regular file actionsVincent Petry2014-05-301-16/+53
| | | | | | | | | | | | | | 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.
* Added "dir" in file actions handler context and fixed versionsVincent Petry2014-05-301-3/+5
| | | | | | | | | Added "dir" in file actions handler context so that handlers can know what the path of the file was without having to look it up from the file list. Fixed versions app to use the context.dir instead of the old $('#dir') element. This makes the versions popup work in the sharing overview.
* Fixed file actions for sharing viewsVincent Petry2014-05-301-12/+22
| | | | | | | | 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.
* Improved FileActions with contextVincent Petry2014-05-301-2/+11
| | | | | A context hash is now passed to file action handlers which makes it possible to have file list specific file actions.
* show delete hint text on hovering trashVolkan Gezer2014-05-281-1/+1
|
* Fixed download URL in public pageVincent Petry2014-05-201-1/+1
|
* Fixed many issues, clean upVincent Petry2014-05-151-0/+2
| | | | | | | | | | | | | | | - 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-211/+222
| | | | | | | | | | | | | | | | | - 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
* we no longer need to handle the Shared folder different from any other folderBjoern Schiessle2014-04-231-6/+2
|
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 broken delete file actionVincent Petry2014-04-011-1/+1
|
* additional class is added to the file actions called e.g. 'action-share', ↵Thomas Müller2014-03-171-11/+26
| | | | | | 'action-rename' in order to allow proper translations of the action's display name an additional parameter has been added to the register function
* Merge pull request #7011 from owncloud/jshintThomas Müller2014-02-041-5/+20
|\ | | | | Added .jshintrc
| * Added .jshintrcVincent Petry2014-01-301-5/+20
| | | | | | | | | | | | - Also fixes a few JSHint warnings in files app - Added "global" comment on top of files app to suppress warning and also inform devs about what globals are use
* | Rename action now appears as pencil iconraghunayyar2014-01-301-5/+16
|/
* permanently show download action on mobile, only iconJan-Christoph Borchardt2014-01-291-2/+2
|
* Fixed download URL in public pageVincent Petry2014-01-241-1/+4
| | | | | | | - Refactored download URL building to make it overridable - Added download URL override in public page - Added JS unit tests for download URL - Added OC.redirect() method to facilitate unit testing
* Fixed various file name escaping issues in core appsVincent Petry2014-01-101-1/+1
| | | | | | | - 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
* Fixed sharing status update for new/uploaded filesVincent Petry2013-10-171-1/+11
| | | | | | | | | | | | | | | Creating new files, folders or uploading files now have their sharing icon updated accordingly. For this, the global share status list that is cached in OC.Share.statuses is reused for new files. Performance should improve as the sharing list is now only loaded once per navigation session. In OC.Share, split loadIcons into loadIcons + updateIcons. Fixes #4977
* canceling individual uploads is currently impossible because there is no ↵Jörn Friedrich Dreyer2013-10-071-14/+1
| | | | placeholder
* Merge branch 'master' into fix_3728_with_file_exists_dialogJörn Friedrich Dreyer2013-09-191-0/+5
|\ | | | | | | | | Conflicts: apps/files/js/filelist.js
| * remove file action elements before recreating themThomas Müller2013-09-181-0/+5
| |
* | Merge branch 'master' into fix_3728_with_file_exists_dialogJörn Friedrich Dreyer2013-09-171-3/+2
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: apps/files/css/files.css apps/files/js/file-upload.js apps/files/js/filelist.js apps/files/js/files.js apps/files_sharing/js/public.js core/js/jquery.ocdialog.js core/js/oc-dialogs.js
| * Ajax calls for "files" and "files_trashbin" appsVincent Petry2013-09-131-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge branch 'master' into fix_3728_with_file_exists_dialogJörn Friedrich Dreyer2013-09-041-8/+6
|\| | | | | | | | | | | | | | | | | Conflicts: apps/files/ajax/upload.php apps/files/js/file-upload.js apps/files/js/filelist.js apps/files/js/files.js apps/files/templates/part.list.php
| * Merge branch 'master' into fix_jslint_kondoukondou2013-08-181-7/+5
| |\ | | | | | | | | | | | | Conflicts: apps/files/js/file-upload.js
| | * Merge pull request #4113 from owncloud/delete-fixJan-Christoph Borchardt2013-08-151-5/+2
| | |\ | | | | | | | | Delete icon fix
| | | * use new delete icon for deleted files as wellJan-Christoph Borchardt2013-07-181-1/+1
| | | |
| | | * remove unnecessary tipsy for Files deleteJan-Christoph Borchardt2013-07-181-1/+1
| | | |
| | | * use background image instead of img for Files delete iconJan-Christoph Borchardt2013-07-181-4/+1
| | | |
| | * | fix #2711 using a custom event, also use css selectors over filterAttrJörn Friedrich Dreyer2013-08-081-2/+3
| | |/
| * / Fix some JSLint warningskondou2013-07-311-1/+1
| |/
* / progress fixesJörn Friedrich Dreyer2013-08-161-1/+1
|/
* Merge pull request #1044 from owncloud/fix_extra_slashBart Visscher2013-06-281-1/+5
|\ | | | | Remove duplicate / for first folder in root
| * update to !==Bart Visscher2013-06-281-1/+1
| |
| * only encodeURIComponent onceJörn Friedrich Dreyer2013-02-091-2/+2
| |
| * Check if extra / is necessary for the folder URLMichael Gapczynski2013-02-091-1/+5
| |
* | Merge pull request #3108 from owncloud/fileactions-orderLukas Reschke2013-04-241-7/+7
|\ \ | | | | | | Files: fix the order fileactions are computed for a file
| * | Files: fix the order fileactions are computed for a fileRobin Appelman2013-04-241-7/+7
| | |
* | | fix wrong shared icon descriptionMorris Jobke2013-04-241-0/+1
|/ / | | | | | | | | | | fix #2928 translation of string "Shared" has to be marked as located in "files" for the translation extractor
* | only prevent shared action for the Shared folder in the root dirBjörn Schießle2013-03-131-1/+1
| |
* | don't add share action to the Shared folderBjörn Schießle2013-03-121-1/+1
| |
* | Files: always show share action at the rightRobin Appelman2013-02-111-9/+18
|/ | | | Fixes #1619
* don't call the delete button unshare, unshare operation no longer availableBjörn Schießle2013-02-071-4/+1
|
* allow to delete single files from the trash bin permanentlyBjörn Schießle2013-02-061-0/+2
|
* allow to look into deleted directoriesBjörn Schießle2013-01-221-0/+1
|
* introduce option to disable download actionBjörn Schießle2013-01-221-6/+10
|
* Whitespace cleanupBart Visscher2013-01-161-7/+7
|
* Fixes two issues if you using IE8. IE8 has problems with .bind actions and ↵libasys2012-11-141-11/+20
| | | | since jquery 1.7.2 using .bind is old school style for event delegation. the new and better way is using .on() function. The second is using $.each instead of for() to walkthrough an array! Now it works perfect, the events after uploads are triggered.
* remove debug statementsRobin Appelman2012-11-051-2/+0
|