aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #8041 from owncloud/files-sortcolumnsVincent Petry2014-05-121-7/+156
|\ | | | | File list sorting by clicking on column headers
| * Clear selection on reload (when changing sort)Vincent Petry2014-04-291-0/+6
| |
| * Add sorting to files list, trashbin and public filesVincent Petry2014-04-281-7/+150
| |
* | Show spinner for all files when deleting allVincent Petry2014-04-291-0/+14
|/
* Fixed drag and drop into folder and onto breadcrumbVincent Petry2014-04-281-10/+100
| | | | | Fixed drag and drop code to use FileList.getSelectedFiles() instead of the visible DOM elements.
* Fixed selection summary calculation issueVincent Petry2014-04-281-0/+26
|
* Fixed selection to be based on FileList.filesVincent Petry2014-04-281-35/+152
| | | | | | | | | | 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)
* Make sure there are always enough elements visible on the pageVincent Petry2014-04-281-0/+8
|
* Fixed insertion of filesVincent Petry2014-04-282-11/+121
| | | | | | | | | Removed "insert" flag, inserting is by default for FileList.add(). Added "animate" flag to FileList.add(). Added logic to correctly detect when to insert/append elements whenever the insertion point is visible or not. Fixed "render next page" logic to work correctly when many pages of files have been added.
* Fixed file sorting to work with scrollingVincent Petry2014-04-281-16/+68
| | | | | | | | | The FileList.files model is now updated with file operations. Adding files to the list will add to the model first, then to the DOM. If the insertion point isn't visible yet, the file won't be added to the DOM until the user scrolls down. Updated unit tests to include checking for the correct insertion point.
* Fix file selection for infinite scrollingVincent Petry2014-04-282-7/+238
| | | | | | | - 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
* Fix file summary to use the whole file listVincent Petry2014-04-282-24/+111
| | | | | | - moved the summary code into a new class FileSummary - FileSummary is calculated only once, then updated with add/remove - added new OC.Util namespace for JS utility functions
* we no longer need to handle the Shared folder different from any other folderBjoern Schiessle2014-04-231-35/+0
|
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-023-42/+1062
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-7/+19
|
* Added unit tests for "add()" method for file uploadVincent Petry2014-03-061-0/+127
| | | | | | - Added OC.Upload.init() to make the code testable - Added unit tests for the add() method of the uploader with some error cases
* don't allow to create a file or folder named 'Shared' in the root folder, ↵Bjoern Schiessle2014-03-051-0/+35
| | | | also exclude all combinations of lower and upper case letters
* Do not send file list for select all on Download/deleteVincent Petry2014-02-132-4/+11
| | | | | | | | - 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
* Merge pull request #7011 from owncloud/jshintThomas Müller2014-02-043-2/+11
|\ | | | | Added .jshintrc
| * Fixed file name validation unit test + added newlineVincent Petry2014-01-301-0/+1
| | | | | | | | | | - fixed file name validation unit test - added "\n" as forbidden character in isFileNameValid()
| * Added .jshintrcVincent Petry2014-01-303-2/+10
| | | | | | | | | | | | - 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
* | Updated unit tests for rename actionVincent Petry2014-01-301-1/+12
|/ | | | | | - rename action is now checked inside of ".nametext" element - added test to ensure that display() correctly resets all actions including the rename one
* Fixed download URL in public pageVincent Petry2014-01-242-0/+67
| | | | | | | - 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 filelist unit tests hidden paramsVincent Petry2014-01-241-5/+8
| | | | Also added dummy table
* Added Javascript unit testsVincent Petry2014-01-162-0/+135
- added karma utility to run jasmine unit tests - added Sinon library (for stubs/mocks/fakeserver) - added a few unit tests for core and files - added autotest-js.sh script