summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix quota text shown escapedDaniel Calviño Sánchez2022-07-051-2/+2
| | | | | | | | | | | "t()" escapes and sanitizes the returned text by default, so strings like "<" are converted to "&lt;". However, the "jQuery.text()" parameter does not need to be escaped, as "&lt;" is shown literally as "&lt;" rather than "<". Now "jQuery.html()" is used instead, which "unescapes" the given text and sets it as a new text node (as the text in the parameter does not contain markup for elements, only text). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* add missing GET param to getstoragestats urlJulien Veyssier2022-07-051-1/+1
| | | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net> (cherry picked from commit ca6a7245032e87f6d7f65c8e796cc0f176659677)
* Fix 404 when using index.php in the urlCarl Schwan2022-07-051-2/+4
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit ee793572cb9acc9d688b1ff191a59e8699af9da1)
* Remove .php from urlCarl Schwan2022-07-051-2/+2
| | | | | | | | Probably here for legacy reasons, but it is a bit weird to call an .php endpoint that doesn't correspond to a .php file Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit c7931086cc557211073540cf13e2af4c5afaaad3)
* Explicitly close div elementLouis Chemineau2022-04-041-3/+3
| | | | | | Fix: #30002 Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Typing correctionsLouis Chemineau2022-01-111-3/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* l10n: Unify spellingValdnet2021-05-201-4/+4
| | | Spelling unification in Nextcloud applications.
* add mount point to quota warning messageRobin Appelman2020-10-041-7/+11
| | | | | | makes it more clear to the user what the quota applies to Signed-off-by: Robin Appelman <robin@icewind.nl>
* Removing the added parenthesesValdnet2020-08-271-4/+4
|
* Add the missing parenthesisValdnet2020-08-271-4/+4
|
* l10n: Add a period at the end of the sentenceValdnet2020-08-271-4/+4
|
* show better quota warning for group folders and external storageRobin Appelman2020-08-251-14/+36
| | | | | | instead of showing the generic 'Your storage is full' message, better explain that it's the group folder/external storage that is full Signed-off-by: Robin Appelman <robin@icewind.nl>
* Only do regular polling of storage statistics if session_keepalive is enabledJulius Härtl2020-03-161-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Copy isFileNameValid function, so the filepicker works without the files appJoas Schilling2020-02-251-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Comply to eslintJohn Molakvoæ (skjnldsv)2019-10-011-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Hide newFile menu if quota is set to 0BJulius Härtl2019-05-281-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Deprecate OC.fileIsBlacklisted and move it to the bundleChristoph Wurst2019-05-141-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprecate oc_current_user, fix usage and move currentUser to the bundleChristoph Wurst2019-05-081-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use proper scroll container when dragging filesJulius Härtl2019-02-201-6/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Throttle getstoragestats.php calls and allow simultaneous uploadsTomasz Grobelny2019-01-271-0/+4
| | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Remove deprecated and unused fileDownloadPathChristoph Wurst2018-10-081-5/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fixup! removed unwanted lineJohn Molakvoæ (skjnldsv)2018-01-031-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed quota update on upload and on deleteJohn Molakvoæ (skjnldsv)2018-01-031-14/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update quotas on each uploadJohn Molakvoæ (skjnldsv)2018-01-031-0/+17
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Show warning if slash is entered as filenameMorris Jobke2018-01-031-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7592 from nextcloud/update-quota-on-files-uploadRoeland Jago Douma2017-12-281-0/+27
|\ | | | | Update quota on files upload
| * Fixed testsJohn Molakvoæ (skjnldsv)2017-12-261-1/+0
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Update quota on file upload and deletionJohn Molakvoæ (skjnldsv)2017-12-211-0/+28
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix drag shadow not visible when dragging a file on a narrow screenDaniel Calviño Sánchez2017-12-141-1/+0
|/ | | | | | | | | | | | | | | | | When a file from the file list is dragged a drag shadow (a copy of the file row that follows the cursor position) is created. The drag shadow element is created as a direct child of the body element, so it needs a higher "z-index" than the one used for the file list to be visible. In narrow screens the "#app-content" uses a "z-index" of 1000 in order to be visible over the "#navigation-bar" when they overlap, so the "z-index" of the drag shadow must be at least 1000 to be visible over the file list. Instead of updating the hardcoded "z-index" it was removed and replaced by CSS rules for ".dragshadow" elements to ease theming. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Improve drag & drop and fix some background issue if d&d on narrow windowsJohn Molakvoæ (skjnldsv)2017-11-081-7/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use proper whitespaceMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix #5349, no themed icon when dragging folderPatrik Kernstock2017-06-131-1/+1
| | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* added quit option in commentstabview.jsnoveens2017-03-231-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix grammarLukas Reschke2017-03-201-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add ignore_files to config,Felix Heidecke2017-03-201-0/+3
| | | | | | | | | | | | | | | | test files against ignore_files list on upload fix typo and indentation Move blacklist declaration to lib/public/Files/FileInfo.php, Rename *ignored to *blacklisted Mocked blacklist_files for testing Mocked blacklist_files for testing Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* disabling dropping on dragging objects temporarilyMichael Jobst2016-11-141-1/+5
| | | | better solution
* Remove upload_limit in files app as it is not needed with PUT upload (#26069)Vincent Petry2016-11-021-2/+0
| | | | | | | The web UI now uses for PUT uploads which aren't restricted by PHP's upload_max_filesize and post_max_size Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-11/+0
| | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix drag and drop icon for files appMorris Jobke2016-10-101-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix hidden files handlingVincent Petry2016-08-191-2/+6
| | | | | | | Hidden files (dot files) are now always rendered in the DOM to make sure that all file operations and selection still work as expected. Their visibility is now toggled on CSS level.
* added back the jquery animationsErik Pellikka2016-05-131-6/+11
|
* code style fixErik Pellikka2016-05-131-11/+3
|
* code style fixErik Pellikka2016-05-131-3/+2
|
* code style fixErik Pellikka2016-05-131-2/+6
|
* added elseifErik Pellikka2016-05-131-1/+1
|
* fixed to work with share links as wellErik Pellikka2016-05-131-3/+4
|
* typo fixErik Pellikka2016-05-131-2/+2
|
* TweakingErik Pellikka2016-05-131-7/+7
|
* Avoids jumping if window is smaller than 300 pixels in heightMorris Jobke2016-05-131-2/+3
| | | | | * divides the area where the scroll should be triggered by 2 * uses the minimum value of the above and 300
* Add scrolling when dragging filesErik Pellikka2016-05-131-0/+19
|