summaryrefslogtreecommitdiffstats
path: root/apps/files/js
Commit message (Collapse)AuthorAgeFilesLines
* Added mountType attribute and adapted Delete action textVincent Petry2014-07-142-5/+15
| | | | | | | | | | | | | | 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-093-31/+92
| | | | | | | | | 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.
* Merge pull request #9445 from owncloud/filelist-auth-erroricewind19912014-07-041-2/+9
|\ | | | | Reload the page when the files app encounters an authentication error
| * Add machine readable error messages to OC\JSONRobin Appelman2014-07-041-2/+9
| | | | | | | | | | | | | | | | | | | | Reload the files app in case of authentication errors, expired tokens or disabled app Reloading will triger the full server side handeling of those errors formatting fix missing semicolon + some jshint warnings
* | Merge pull request #9434 from owncloud/files-reloadpromiseissueMorris Jobke2014-07-041-1/+3
|\ \ | |/ |/| Fix reload call for all subclasses
| * Fix reload call for all subclassesVincent Petry2014-07-041-1/+3
| | | | | | | | All subclasses must also properly return the ajax call object.
* | 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.
* shared view: remove whitespace glitch on rightJan-Christoph Borchardt2014-07-021-1/+1
|
* Merge pull request #9373 from owncloud/design-fix-modifiedVincent Petry2014-07-021-2/+7
|\ | | | | shade color for modified dates again, fix #9363
| * simplify formula and add commentMorris Jobke2014-07-021-2/+3
| |
| * shade color for modified dates again, fix #9363Jan-Christoph Borchardt2014-07-021-1/+5
| |
* | Merge pull request #9311 from owncloud/storage-not-availableVincent Petry2014-07-021-11/+12
|\ \ | |/ |/| Handle storages not being available in webui and webdav
| * If loading a directory fails, navigate back to the previous directoryRobin Appelman2014-06-301-11/+12
| |
* | Use fileActionsReady to re-render sharing iconsVincent Petry2014-07-012-15/+25
| | | | | | | | | | | | | | | | | | 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.
* | Fix fileActionsReady event after deferred file actions updateVincent Petry2014-07-011-1/+2
|/
* Remove missed console.log in file listVincent Petry2014-06-271-1/+0
|
* Merge pull request #9254 from owncloud/fileactions-deferredMorris Jobke2014-06-273-5/+76
|\ | | | | Sync file list with file actions
| * Sync file list with file actionsVincent Petry2014-06-273-5/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #9174 from owncloud/breadcrumbfixJan-Christoph Borchardt2014-06-273-86/+113
|\ \ | |/ |/| Breadcrumb width calculation fix
| * Breadcrumb width calculation fixVincent Petry2014-06-273-86/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrote the breadcrumb calculation to be more readable. Breadcrumb now has a setMaxWidth() method to set the maximum allowed width which is used to fit the breadcrumbs. The breadcrumb width is now based on the container width, passed through setMaxWidth() by the FileList class. Now using fixed widths for the test crumbs to simulate consistent widths across browsers which rendering engines might usually yield different results.
* | Merge pull request #9170 from owncloud/files-renamevalidationblurLukas Reschke2014-06-231-4/+12
|\ \ | | | | | | Fix blurring of invalid file name on rename
| * | Fix blurring of invalid file name on renameVincent Petry2014-06-231-4/+12
| |/ | | | | | | | | | | | | | | When renaming to an existing file name, blurring the field should not remove it. This fix keeps the field until escape is pressed instead of replacing it with a broken empty space.
* | Merge pull request #8931 from owncloud/filelist-usepathforactionVincent Petry2014-06-232-2/+2
|\ \ | |/ |/| [master] Use actual file path on rename/delete
| * Use actual file path on rename/deleteVincent Petry2014-06-062-2/+2
| | | | | | | | | | | | | | 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.
* | Clear file selection when list is repopulatedVincent Petry2014-06-231-0/+2
| | | | | | | | | | When calling FileList.setFiles() the current selection needs to be cleared.
* | Merge pull request #9120 from owncloud/fileactions-filelistfallbackMorris Jobke2014-06-211-1/+3
|\ \ | | | | | | Fixed file actions fallback
| * | 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)
* | | Fix appending of rows after uploadVincent Petry2014-06-191-16/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When uploading files or folders, they only need to be appended or updated when their path or a section of their path is inside the current directory (which happens for folder upload) Fixes issue where file was appended when dragging on a parent directory onto the breadcrumb. Fixes appending issue when uploading folders.
* | | Fixed uploading by drag and drop into folderVincent Petry2014-06-192-9/+4
|/ /
* | Adds class name to span element inside filename.raghunayyar2014-06-071-1/+1
| |
* | Ellipcises too long filenamesraghunayyar2014-06-061-1/+3
|/
* decode filename for scrolltoJörn Friedrich Dreyer2014-06-051-1/+1
|
* use slide toggle for files appBernhard Posselt2014-06-051-7/+1
|
* Use active instead of hover for active sidebar optionJoas Schilling2014-06-031-2/+2
| | | | Fix #8720
* Merge pull request #8821 from owncloud/kill-zip-download-restrictionJan-Christoph Borchardt2014-06-032-15/+1
|\ | | | | drop allowZIPdownload and maxZIPSize as options
| * drop allowZIPdownload and maxZIPSize as optionsMorris Jobke2014-06-022-15/+1
| |
* | display "<1 kB" for really small filesMorris Jobke2014-06-021-1/+1
|/ | | | | * added parameters for humanFileSize to trigger that behaviour * add unit tests for that
* Merge pull request #8695 from owncloud/jserrorfixesLukas Reschke2014-05-301-2/+3
|\ | | | | Fixed undefined object error that appears after a delay
| * Fixed undefined object error that appears after a delayVincent Petry2014-05-231-2/+3
| | | | | | | | Now binding properly with the file list instance object.
* | Merge pull request #8779 from owncloud/sel-webdav-onclickVincent Petry2014-05-301-0/+3
|\ \ | | | | | | select webdav address on click
| * | select webdav address on clickVolkan Gezer2014-05-301-0/+3
| | |
* | | Merge pull request #8663 from owncloud/files-dndissueLukas Reschke2014-05-301-5/+13
|\ \ \ | | | | | | | | Fixed drag and drop from external files, added tests
| * | | Fix dropping files below the tableVincent Petry2014-05-221-3/+2
| | | |
| * | | Fixed drag and drop from external files, added testsVincent Petry2014-05-211-5/+14
| | |/ | |/| | | | | | | | | | | | | | | | | | | - Fixed detection whether the drop zone is inside the currently visible table - Now dragging outside the table does nothing instead of uploading, because the user might drop on the sidebar - Added unit tests for the drop handler
* | | Sharing overview fixes and unit testsVincent Petry2014-05-303-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-303-32/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-302-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-303-18/+39
| | | | | | | | | | | | | | | | | | | | | | | | 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-302-4/+17
| | | | | | | | | | | | | | | A context hash is now passed to file action handlers which makes it possible to have file list specific file actions.
* | | Added sharing overview page (WIP)Vincent Petry2014-05-301-4/+6
| | | | | | | | | | | | | | | - added sharing overview entries in the sidebar - use OCS Share API to get the list of files