summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #11524 from nazar-pc/patch-1Vincent Petry2014-12-041-1/+1
| | | | Page size calculation based on real page height
* Added permission check for drag and dropVincent Petry2014-09-051-1/+6
| | | | | | | | | | When dropping files onto a read-only folder, a notification is now shown instead of attempting to upload. This for both the drag for upload and drag from inside the file list cases. Backport of f1bfe35cda2f11d1b38726cf2d4f879427b2c8d5 from master
* decode filename for scrolltoJörn Friedrich Dreyer2014-06-051-1/+1
|
* use slide toggle for files appBernhard Posselt2014-06-051-7/+1
|
* 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.
* | select webdav address on clickVolkan Gezer2014-05-301-0/+3
|/
* Merge pull request #8610 from owncloud/ie8-filesdndbugVincent Petry2014-05-161-1/+1
|\ | | | | Fix drag and drop in IE8
| * Fix drag and drop in IE8Vincent Petry2014-05-161-1/+1
| | | | | | | | | | For some reason IE8 didn't like the sort function, so using the one from underscore instead.
* | Fixed many issues, clean upVincent Petry2014-05-151-44/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fixed upload and storage statistics - fixed infinite scroll to use the correct contain for scroll detection - fixed unit test that sometimes fail for rename case - controls are now sticky again - fixed selection overlay to be aligned with the table - fixed "select all" checkbox that had id conflicts - fixed public page - fixed global actions permissions detection - fix when URL contains an invalid view id - viewer mode now hides the sidebar (ex: text editor) - added unit tests for trashbin - clean up storage info in template (most is retrieved via ajax call now)
* | Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-151-345/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - FileList is now an instantiable class - FileActions is now in namespace - added App class for trashbin app - moved trashbin overrides into classes extending FileList - replaced many static calls with "this." or "self." to make the classes reusable/extendable - new URL parameter "view" to specify which view is shown, for example "files" or "trashbin" - added OC.Util.History utility class in core for handling history - moved URL handling/routing to OCA.Files.App - popstate will correctly update the current view and notify the view of the URL change so it can update the current dir - added JS unitt tests for the trashbin app - fixed public app to work with the new namespaces
* | Added app navigation for files appVincent Petry2014-05-151-0/+8
|/ | | | | | - Added links to trashbin and shared dir - Moved "WebDAV" settings block to the app nav's settings section - Added sidebar support in trashbin app as well
* typos, naming, remove unused code, identationThomas Müller2014-04-281-36/+27
|
* 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
| |/