summaryrefslogtreecommitdiffstats
path: root/core/js/files
Commit message (Collapse)AuthorAgeFilesLines
* Allow files to be copied through action menu & multiple files actionsThomas Citharel2017-09-151-0/+45
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* fix parsing of dav permissionsRobin Appelman2017-07-171-3/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix sorting of favorite filesDaniel Calviño Sánchez2017-07-052-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sort comparator checks the "isFavorite" property of the FileInfo objects to compare. That property is set when the file list is loaded and the response from the server is parsed, and thus a freshly loaded file list has the proper sorting for favorite files. However, the property is not set in other cases, like when the FileInfo objects are derived from FileInfoModels due to a file being marked as a favorite or a text editor being closed, which causes the file to be sorted in the wrong position. There is no need to add the property in those situations, though; in all cases the TagsPlugin adds a "tags" array property that contains an OC.TAG_FAVORITE tag, so that tag can be checked instead of "isFavorite". Moreover, although "isFavorite" was added by the main "_parseFileInfo" function it did not really belong there but to the "FileInfoParser" from the TagsPlugin; however, as that property now is not used anywhere it was removed altogether. A cleaner solution would have been to make the sort comparator extensible by plugins like other behaviours of the file list and then add the sorting logic related to favorite files to the TagsPlugin. However, right now only the TagsPlugin would need to alter the main sorting logic, and it seems like a corner case anyway. Even if it is implemented as a plugin, favorite files is a core feature, so for the time being it will be taken into account directly in the main sorting logic; making the sort comparator extensible by plugins is defered until there are other use cases for that. Fixes #5410 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use dot notation for array access - JSLint recommendationMorris Jobke2017-05-012-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to set custom mount typesRobin Appelman2017-04-281-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fixed size issues on main detail view and disappearing of share recipients ↵Michael Jobst2016-12-231-12/+24
| | | | | | | | | | | | | | | | | | (#26603) * fixed size issues on main detail view and disappearing of share recipients * Changes due to code comments * Moved reloadProperties() to FileInfoModel * Solved Scrutinizer issues * Bugfix: undefined value used on error * check if options are set for FileInfoModel.initialize() Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-151-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1283 from nextcloud/us_files-ui-webdav-uploadLukas Reschke2016-10-251-1/+40
|\ | | | | Use Webdav PUT for uploads
| * More fixes to file uploadVincent Petry2016-10-241-1/+40
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Sort favorite files first Issue #1802ryanwr2016-10-242-1/+13
|/ | | | Signed-off-by: Ryan Welch <ryantwr@gmail.com>
* Make it possible to filter by tags with REPORT methodVincent Petry2016-10-191-1/+5
| | | | | | | | | | | Enhanced the REPORT method on the Webdav endpoint and added a "oc:favorite" filter rule. When set, it will return a flat list of results filtered with only favorite files. The web UI was also adjusted to use this REPORT method instead of the private API endpoint. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont load filelist previews if we know we dont have oneRobin Appelman2016-07-272-3/+21
|
* Init the headers in iedavclient.jsVincent Petry2016-06-221-0/+1
|
* Fix MKCOL for IE11 as wellRoeland Jago Douma2016-03-101-1/+6
| | | | | Using https://github.com/owncloud/core/pull/22274 we have to patch the iedavclient.js as well.
* Require CSRF token for non WebDAV authenticated requestsLukas Reschke2016-02-181-1/+4
|
* Merge pull request #16783 from owncloud/handle-redirects-globalThomas Müller2016-02-171-0/+2
|\ | | | | Adding global error handler for ajax calls which run into redirection…
| * Add handler for global ajax errorsVincent Petry2016-02-151-0/+2
| |
* | Fix redundant headers in files dav clientVincent Petry2016-02-161-12/+7
|/ | | | | The defaultHeaders are already injected with the xhrProvider, so no need to pass them again a second time.
* Add system tags filter section for files appVincent Petry2016-02-091-1/+72
|
* Make JS Webdav work again with IE9-IE10Vincent Petry2016-02-051-55/+41
|
* Small fixes in Dav files clientVincent Petry2016-02-041-2/+2
| | | | | Remove double leading slash in path. Add utf-8 in default content type.
* Merge pull request #21200 from owncloud/files-authorizationheaderThomas Müller2015-12-171-12/+10
|\ | | | | Use Authorization headers for public webdav in web UI
| * Use Authorization headers for public webdav instead of URLVincent Petry2015-12-141-12/+10
| | | | | | | | | | | | Instead of prepending the token as username in the URL, use the Authorization header instead. This is because IE9 considers this a cross-domain call and refuses to do it in the first place.
* | Fix files UI mtime parsing from webdavVincent Petry2015-12-161-1/+1
|/
* Files can't have create permissionsRoeland Jago Douma2015-12-111-4/+0
| | | | Fixes #20839
* Fix for parsing pretty printed Webdav responsesVincent Petry2015-11-241-4/+1
| | | | Update davclient.js + adjust IE workaround for this
* Now using IE8 workaround of davclient.js for all IE versionsVincent Petry2015-11-221-1/+1
|
* Fix OC.FileInfo to copy all propertiesVincent Petry2015-11-221-25/+17
| | | | | This makes it possible to also store custom properties passed through the data object like tags or shareOwner.
* Use oc:fileid property instead of oc:idVincent Petry2015-11-221-17/+3
|
* Fix port issue - options.host already has the port attachedThomas Müller2015-11-221-16/+3
|
* Query tags/favorite through Webdav in file listVincent Petry2015-11-222-10/+58
|
* Added OC.Files.Client Webdav-based files clientVincent Petry2015-11-222-0/+816
|
* Add evert's davclient.js + es6-promise + IE8 workaroundVincent Petry2015-11-221-0/+169
- Add davclient.js lib - Add es6-promise required by that lib - Wrote IE8 workaround lib/shim for davclient.js