aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
Commit message (Collapse)AuthorAgeFilesLines
* Fixed drag and drop into folder and onto breadcrumbVincent Petry2014-04-281-40/+20
| | | | | Fixed drag and drop code to use FileList.getSelectedFiles() instead of the visible DOM elements.
* Fixed drag shadow file sortingVincent Petry2014-04-281-0/+1
|
* Fixed selection to be based on FileList.filesVincent Petry2014-04-281-8/+4
| | | | | | | | | | The file selection is now based on the internal model array FileList.files instead of the visible checkboxes. This makes it possible to virtually select files that haven't been rendered yet (select all, then deselect a visible one) Added more unit tests for selection (with shift and ctrl as well)
* Fix file selection for infinite scrollingVincent Petry2014-04-281-199/+3
| | | | | | | - moved file selection code to FileList - fix selection summary when all files are selected - nextPage now auto-selects files if "select all" checkbox is checked - fixed trashbin to use the same selection logic as FileList
* we no longer need to handle the Shared folder different from any other folderBjoern Schiessle2014-04-231-4/+2
|
* Change from showHTML to showLukas Reschke2014-04-111-1/+1
| | | There is no need to use `showHTML` here.
* Merge pull request #8069 from ↵Björn Schießle2014-04-111-3/+3
|\ | | | | | | | | owncloud/fix-localization-issues-with-file-encrypt-app Fix some localization issues with file encryption/decryption strings
| * Fix some localization issues with file encryption/decription stringsVolkan Gezer2014-04-051-3/+3
| |
* | Merge pull request #8049 from owncloud/filepickersvgMorris Jobke2014-04-091-1/+1
|\ \ | |/ |/| Fix file picker SVG issues
| * Moved code to replace svg with png to OC.UtilVincent Petry2014-04-041-1/+1
| | | | | | | | | | | | | | | | | | - Moved code that replaces the "svg" extension for the given file to core as OC.Util.replaceSVGIcon. - Added unit test for OC.Util.replaceSVGIcon - Moved "replaceSVG" to OC.Util.replaceSVG and deprecated the global "replaceSVG" function. - Added alias for SVGSupport() as OC.Util.hasSVGSupport() (for now)
* | Show higher resolution previews for high dpi screensRobin Appelman2014-04-041-2/+4
|/
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-164/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fixing javascript error where $(Files.breadcrumbs[1]).get(0) returns ↵Thomas Müller2014-03-181-5/+8
| | | | undefined - happens on resize to a very small width
* Merge branch 'master' into fix-7307Thomas Müller2014-03-061-2/+5
|\ | | | | | | | | | | Conflicts: core/js/router.js settings/js/admin.js
| * don't allow to create a file or folder named 'Shared' in the root folder, ↵Bjoern Schiessle2014-03-051-2/+5
| | | | | | | | also exclude all combinations of lower and upper case letters
* | Replace OC.Router.generate() with OC.generateUrl()Thomas Müller2014-03-021-2/+2
|/
* rename url parameterRobin Appelman2014-02-241-1/+1
|
* Add url parameter to control whether previews should return 404 when the ↵Robin Appelman2014-02-211-0/+1
| | | | mimetype is unsupported
* Merge branch 'master' into mimeicons-svgRobin Appelman2014-02-201-10/+13
|\
| * Do not send file list for select all on Download/deleteVincent Petry2014-02-131-10/+13
| | | | | | | | | | | | | | | | - When all files are selected, do not send the whole file list - Download will trigger download for the parent folder, also works with root - Delete will send "allfiles" to the server that will find the file list or the passed directory by itself
* | Show svg mime icons when no preview is availableRobin Appelman2014-02-191-2/+7
|/
* Fix implied evals and doubled definition of variableMorris Jobke2014-02-071-1/+1
| | | | | | | fixes #7119 fixes #7120 fixes #7121 fixes #7122
* Merge pull request #7011 from owncloud/jshintThomas Müller2014-02-041-12/+33
|\ | | | | Added .jshintrc
| * Fixed file name validation unit test + added newlineVincent Petry2014-01-301-7/+15
| | | | | | | | | | - fixed file name validation unit test - added "\n" as forbidden character in isFileNameValid()
| * Added .jshintrcVincent Petry2014-01-301-5/+18
| | | | | | | | | | | | - 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
* | Merge branch 'master' into pr-exceed_upload_limit_msgPellaeon Lin2014-01-301-13/+48
|\| | | | | | | | | | | Conflicts: apps/files/templates/index.php apps/files_sharing/templates/public.php
| * merge master into mobile-styleJan-Christoph Borchardt2014-01-291-5/+37
| |\
| | * Merge pull request #6184 from owncloud/6051-ux-files-Move-File-SpinnerMorris Jobke2014-01-241-5/+37
| | |\ | | | | | | | | #6051 [ux][files] Move File Spinner
| | | * Fixed indention.zombiehugs2013-12-041-1/+1
| | | | | | | | | | | | | | | | As per @kabum request, indention on line 694 has been fixed.
| | | * #6051 [ux][files] Move File Spinnerzombiehugs2013-12-041-5/+37
| | | | | | | | | | | | | | | | | | | | | | | | Added spinner to file icon when moving to new folder or out of folder. Commit is related to #6051
| * | | Merge branch 'master' into mobile-styleThomas Müller2014-01-231-7/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apps/files/js/files.js apps/files_sharing/css/public.css apps/files_sharing/js/public.js apps/files_sharing/templates/public.php
| | * | Merge pull request #6719 from tripflex/fix_pubup_progbarMorris Jobke2014-01-221-1/+1
| | |\ \ | | | | | | | | | | Fix public upload progress bar
| | | * | change publicUploadButtonMock to public_uploadMyles McNamara2014-01-201-1/+1
| | | |/ | | | | | | | | Changed jQuery selector for public preview to public_upload to correctly show preview
| | * | Merge pull request #6827 from rnveach/fix_6730Morris Jobke2014-01-201-1/+2
| | |\ \ | | | | | | | | | | Fix 6730
| | | * | fixed selector string and removed all checkbox if it was selectedrnveach2014-01-171-1/+2
| | | |/
| | * / Fixed various file name escaping issues in core appsVincent Petry2014-01-101-6/+8
| | |/ | | | | | | | | | | | | | | | | | | - 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
| * / fixing preview generationThomas Müller2014-01-151-1/+1
| |/
* / Update #free_space on getstoragestats AJAX callPellaeon Lin2013-12-111-0/+1
|/
* Selection summary is now displayed properlyVincent Petry2013-11-111-1/+1
| | | | Fixes #5775
* Fixed storage stats to be based on current directoryVincent Petry2013-11-061-7/+19
| | | | | | | | Previously, the storage statistics were always for the root dir. This means that the upload button would always show the limit for the root dir, even when uploading to a shared dir or external storage. This fix adds a "dir" argument to getstoragestats.php.
* Update quota value in client after scan and uploadVincent Petry2013-11-061-12/+31
| | | | | | After uploading, the quota value wasn't refreshed. This fix refreshes the quota value after files have been scanned or uploaded.
* calling getstoragestats.php only if a user is logged in because this call ↵Thomas Müller2013-11-051-17/+19
| | | | requires a user to be logged in
* Merge pull request #5582 from owncloud/files-previewcachingThomas Müller2013-11-051-29/+56
|\ | | | | Append file etag to preview URLs
| * Fixed preview URL + size while dragging an existing fileVincent Petry2013-10-281-2/+3
| |
| * Append file etag to preview URLsVincent Petry2013-10-281-27/+53
| | | | | | | | Fixes #5534
* | prefer closest over parentJörn Friedrich Dreyer2013-10-311-1/+1
| | | | | | closest will search up the tree
* | use data-file to retrieve filenameJörn Friedrich Dreyer2013-10-311-1/+1
|/ | | | forward port of https://github.com/owncloud/core/pull/5647#discussion-diff-7341163 trust me, I know what I'm doing
* Merge branch 'master' into ↵Jörn Friedrich Dreyer2013-10-231-2/+10
|\ | | | | | | | | | | | | prevent_user_from_creating_or_renaming_to_an_existing_filename Conflicts: apps/files/js/filelist.js
| * Fixed ugly white space while loading file thumbnailVincent Petry2013-10-221-2/+10
| | | | | | | | | | | | | | Preview images are now pre-loaded before being set on the file element. This fixes #5135 and prevents a white space to be displayed while the thumbnails is being loaded.
* | prevent user from creating or renaming sth. to an existing filenameJörn Friedrich Dreyer2013-10-221-99/+99
|/ | | | | | | | - show tooltip when violating naming constraints while typing - when target filename exists on server fallback to dialog to interrupt the users flow because something unexpected went wrong - fixes #5062 - also fixes some whitespace and codestyle issues in files js - uses css selector over filterAttr in touched js files