aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
Commit message (Collapse)AuthorAgeFilesLines
* fix(files): url used to retrive storage statsMax2023-07-311-2/+2
| | | | Signed-off-by: Max <max@nextcloud.com>
* address reviewSimon L2023-06-241-2/+2
| | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* only print deprecation logs if debug mode is enabledSimon L2023-06-241-2/+2
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Move deprecation warnings to debugSimon L2023-06-241-2/+2
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Prevent scrolling hover .files-controlsLouis Chemineau2023-02-081-0/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix scrolling while dragging in file list viewLouis Chemineau2023-01-051-17/+19
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Replace custom tooltips with native ones in filesjulia.kirschenheuter2022-12-221-5/+3
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Fix file list scrollingJulius Härtl2022-09-011-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Show usage percenteage in the tooltipDaniel Calviño Sánchez2022-08-101-1/+1
| | | | | | | | | | | | | The tooltip of the initial quota display showed the usage percenteage and the total available space. However, the total available space was redundant, as it was shown just below. The tooltip of the updated quota display showed the usage percenteage, but based on the quota rather than the total available space, so there was a mismatch between the tooltip and the bar below. Now the tooltip of the initial and the updated quota display both show just the usage percenteage based on the total available space. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use total available space rather than quota when updating the displayDaniel Calviño Sánchez2022-08-101-2/+3
| | | | | | | | | The initial quota display uses the total available space rather than the quota. Moreover, the relative usage is based on the total space rather than the quota. Due to this now the total available space is also used when updating the quota display. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Remove more legacy idsVincent Petry2022-07-271-3/+0
| | | | | | | | Remove more unused legacy ids from early ownCloud times. This reduces the number of duplicate ids in the DOM. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #32993 from nextcloud/fixes-for-quota-text-in-navigation-barDaniel Calviño Sánchez2022-07-051-2/+2
|\ | | | | Fixes for quota text in navigation bar
| * Fix quota text shown escapedDaniel Calviño Sánchez2022-06-231-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>
* | Fix 404 when using index.php in the urlCarl Schwan2022-07-051-2/+4
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Remove .php from urlCarl Schwan2022-06-211-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>
* 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>