aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9177 from owncloud/jsdocexperimentVincent Petry2014-11-131-5/+36
|\ | | | | Improved JS Docs + added build script for JS Docs
| * Improved Javascript docs for JSDocVincent Petry2014-10-311-5/+36
| | | | | | | | | | | | Added namespaces so that JSDoc can find them. Fixed a few warnings. Improved some comments.
* | add alt text for file actions, but leave empty since text is directly next to itJan-Christoph Borchardt2014-11-061-1/+1
|/
* correct delete-icon to icon-delete, fix #11128Jan-Christoph Borchardt2014-09-221-1/+1
|
* Added mountType attribute and adapted Delete action textVincent Petry2014-07-141-5/+11
| | | | | | | | | | | | | | Added mountType attribute for files/folder to indicated whether they are regular, external or shared. The client side then adapts the "Delete" action hint text based on this information. Only the mount roots must have the delete icon hint adapted. To make this detectable on the client side, the mountType can now be null, "shared", "shared-root", "external" or "external-root". This also gives room to icon customization on the client side.
* Propagate file action changes to the file listsVincent Petry2014-07-091-26/+57
| | | | | | | | | Whenever an app needs to register an event late, it does that on the original file actions object. Since the file actions that the file list work on is a merged list, not the original one, the registration event needs to be propagated there as well.
* Fix FileActions merging overrideVincent Petry2014-07-041-10/+6
| | | | | | When merging FileActions, the register() functio needs to correctly override the previously merged action handler without affecting the original one.
* Use fileActionsReady to re-render sharing iconsVincent Petry2014-07-011-2/+3
| | | | | | | | | Whenever file actions are modified, either by registering new actions or when appending a new page of entries, the sharing app is now notified so it can correctly refresh the sharing icon status. Additionally, the core's loadIcons() method is also used to load the existing shares and also refresh the sharing icons afterwards.
* Sync file list with file actionsVincent Petry2014-06-271-5/+50
| | | | | | | | | | | | | | Whenever file actions are registered later, now the file lists are automatically notified. Added FileActions.addUpdateListener() to be able to receive such notifications. This removes the need for apps to manually call FileActions.display() after registering new actions. This fixes issues with race conditions when file actions are registered after the file list was already rendered.
* Merge pull request #8931 from owncloud/filelist-usepathforactionVincent Petry2014-06-231-1/+1
|\ | | | | [master] Use actual file path on rename/delete
| * Use actual file path on rename/deleteVincent Petry2014-06-061-1/+1
| | | | | | | | | | | | | | When renaming or deleting a file that is in a subdirectory, performing the action from the sharing overview or another file list view, the actual directory of the file must be used instead of the current directory.
* | Fixed file actions fallbackVincent Petry2014-06-201-1/+3
|/ | | | | | | | Some apps are calling FileActions.display() directly but omit the new fileList argument. This fix makes the fileList argument correctly fall back to the default file list (the one from the "All files" section)
* drop allowZIPdownload and maxZIPSize as optionsMorris Jobke2014-06-021-7/+1
|
* Sharing overview fixes and unit testsVincent Petry2014-05-301-7/+8
| | | | | | | | | | | | - Fixed renaming and fileActionsReady event - Added unit tests for shares list - Fixed public page with defer - Fixed file actions in sharing overview - Fixed sharing counterpart list (10 entries max) - Fixed file path attribute to be used in download action - Fix sharing list headers - OC.Share icons now operate on fileList instance - Fix OC.Share.updateIcon when more than one list in DOM
* 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
| |