aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
Commit message (Collapse)AuthorAgeFilesLines
...
* fixes size of the download spinnerVincent Chan2016-05-301-2/+2
|
* Auto-add fileid in URL for currently displayed folderVincent Petry2016-05-061-1/+1
|
* Fix download spinner to work with CSS stylesVincent Petry2016-03-041-10/+9
| | | | | | A recent change replaced img elements with CSS icons for file actions. This fix adjusts the logic to work properly with CSS icons instead of images.
* Close classRoeland Jago Douma2016-02-251-1/+1
|
* Make file actions use icon CSS classesRoeland Jago Douma2016-02-251-15/+20
| | | | This makes theming of file actions possible
* Bring back file delete action text to be based on contextVincent Petry2015-12-111-3/+23
| | | | | | | | For received shares, the delete action becomes "Unshare" and for personal mounts it becomes "Disconnect storage". This also makes it possible from now on to pass a function to a file action's "displayName" attribute.
* Properly join path sectionsVincent Petry2015-11-221-4/+1
| | | | | This prevents double slashes that can mess up path comparisons in some cases.
* Make files app use Webdav for most operationsVincent Petry2015-11-221-1/+2
|
* Fix file action download spinnerVincent Petry2015-10-301-1/+1
|
* If an inline files action provides an alt text show itRoeland Jago Douma2015-10-031-1/+2
| | | | | * Added unit tests for icon display * Added unit tests for icon alt text display
* Fix order of actions in the files actions menuVincent Petry2015-09-281-0/+4
|
* Properly translate file actionsVincent Petry2015-09-221-0/+2
|
* Only show delete action in menu when delete permission existsVincent Petry2015-08-181-1/+1
| | | | | | This reverts an older decision where we said the delete action must always appear but be grayed out when the permission is missing. The actions menu obsoletes that.
* Merge pull request #18178 from owncloud/files-sidebar-actionsJan-Christoph Borchardt2015-08-131-7/+82
|\ | | | | Sidebar file actions
| * Make file actions work from sidebarVincent Petry2015-08-121-7/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | The favorite icon in the sidebar now triggers the file action and also updates itself according to the model's state when triggered from the file row. The thumbnail triggers the default action. Currently only one FileInfoModel is used for the selection and state synchronization between views. FileList reload now auto-closes the sidebar.
* | replace tipsys with tooltipsHendrik Leppelsack2015-08-121-0/+1
|/
* Fixed file actions menu to close when reclicking triggerVincent Petry2015-08-111-11/+21
| | | | | | FileActionsMenu is now a backbone view. The trigger and highlight handling is now done in the FileActions.showMenu() method using events.
* Inline actions using default renderer are now always permanentVincent Petry2015-08-101-0/+1
| | | | | | | | Default renderer like the favorite icon can decide whether to use the permanent class or not. Fixed sharing code to properly update the icon according to sharing state modifications.
* Updated unit tests for file actions and actions menuVincent Petry2015-08-101-5/+3
|
* Make file action menu icon permanentVincent Petry2015-08-101-3/+5
|
* Implement file actions dropdownVincent Petry2015-08-101-126/+176
| | | | | | File actions now have two types "inline" and "dropdown". The default is "dropdown". The file actions will now be shown in a dropdown menu.
* move updateFileActionSpinner to OCA.Files.FileActionsMorris Jobke2015-07-221-2/+22
|
* refactor this to proper separation of concernsMorris Jobke2015-07-151-3/+6
|
* refactoring into proper methodsMorris Jobke2015-07-071-27/+1
|
* Add proper download started feedbackMorris Jobke2015-07-071-6/+23
| | | | | | | | * this code adds a cookie when a special get parameter is set * the content of this get parameter is used as value for the cookie * the cookie expires after 20 seconds * the JS code checks every 500 milliseconds for the cookie -> if the cookie is set the request returned and the download is started
* Reduce timeout for download spinner to 2 secondsMorris Jobke2015-07-071-1/+1
|
* Fix layout of disabled links in the file listMorris Jobke2015-07-071-1/+12
| | | | * also disable download button after click
* Add loading spinner to download iconMorris Jobke2015-07-071-0/+8
| | | | * vanishes after 7 seconds
* Show hint if there is no delete permissionMorris Jobke2015-04-231-2/+13
| | | | | | * add class .no-permission which shows the default delete icon * fixes #15172 * add unit test for no permission and for delete permission
* fix_#11348 Safari rename button positioningSergei Shuykov2015-01-161-1/+2
|
* make Share button localized againVolkan Gezer2015-01-111-1/+1
| | | | it seems we have forgotten to use named FileAction
* use method to only visually hide elements, show only for screen readerJan-Christoph Borchardt2014-12-171-1/+1
|
* fix Delete action text being translatableJan-Christoph Borchardt2014-12-171-1/+2
|
* add text to Delete actionJan-Christoph Borchardt2014-12-171-1/+2
|
* introduce alt text for rename icon - fixes #12067Morris Jobke2014-12-081-0/+1
|
* Improve FileActions JS to allow for custom renderingVincent Petry2014-11-241-113/+238
| | | | | | | | | | This improves the OCA.Files.FileActions class to support passing a "render" function in the action object. The default function "_defaultRenderFunction" is used by default and renders actions in the usual actions container. Moved "Rename" and "Delete" to custom render functions.
* 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