summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/files_drop.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Replace files app ids to classesVincent Petry2022-07-261-1/+1
| | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Typing correctionsLouis Chemineau2022-01-111-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use DOMContentLoaded and fix sharebymail loading issueJohn Molakvoæ (skjnldsv)2020-07-201-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Triple dot to ellipsis.rakekniven2020-04-041-1/+1
| | | Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
* fix wrong indentationChristopher Mueller2020-03-311-6/+6
| | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
* add translation strings & add margin to uploaded files-listChristopher Mueller2020-03-311-4/+3
| | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
* add progressbar for every element & better designChristopher Mueller2020-03-311-3/+14
| | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
* Add basic progressbar to public upload pageChristopher Mueller2020-03-311-0/+2
| | | | Signed-off-by: Christopher Mueller <chrinimue@posteo.me>
* Warn user before closing when uploading a file on a upload only linkJulius Härtl2019-09-031-11/+30
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add the file drop uploaded files elementMichael Weimann2019-01-041-2/+2
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Prevent special characters from breaking the file drop remote urlJohn Molakvoæ (skjnldsv)2018-12-181-0/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move files_drop to compiled handlebarsRoeland Jago Douma2018-10-161-12/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not iterate over the filesDaniel Calviño Sánchez2017-08-181-5/+4
| | | | | | | | | | As "singleFileUpload" is used the "add" callback (which in turn calls "addFileToUpload") will always be called with a single file. Therefore there is no need to iterate over the files (and it is not done in the other callbacks either, so this aligns the code with the rest of the callbacks). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Replace fileName variable with data.files[0].nameDaniel Calviño Sánchez2017-08-181-8/+6
| | | | | | | | | | | | | | | | | There is no need to store the file name, as the "data" parameter given to all the callbacks provides a "files" attribute with all the files that the callback refers to; moreover, it will always be a single file due to the use of "singleFileUploads" in the jQuery File Upload plugin. This also fixes the loading icon not disappearing when several files were uploaded at once. "singleFileUploads" causes the "add" callback to be called once for each file to be uploaded, so "fileName" was overwritten with the name of each new file in the upload set; when "fileName" was later used in the "done" callback to find the file in the list whose loading icon replace with the MIME type icon "fileName" always had the name of the last file, and thus its icon was the only one replaced. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update the whole file item instead of only its contentsDaniel Calviño Sánchez2017-08-181-7/+8
| | | | | | | | | | | | | | | | | | The "done" and "fail" callbacks both update the item for the uploaded file using "setFileIcon". "setFileIcon" updates the contents of the "<li>" element for the file, but the "fail" callback was giving "setFileIcon" an element generated by the template, so the resulting HTML contained a "<li>" element nested in another "<li>" element. However, generating the HTML is better done through a template, so the template now receives the icon to show in order to be used by a successful upload and a failed one, and "setFileIcon" was changed to "updateFileItem". Note that the mimeTypeUrl does no longer need to be escaped, as Handlebars templates escape the needed characters automatically. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Remove "errorThrown" parameterDaniel Calviño Sánchez2017-08-181-1/+1
| | | | | | | When the "fail" callback is called, "errorThrown" is a property of the data object instead of a parameter. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* some small refactoring and reformatingArtur Neumann2017-04-271-6/+16
| | | Signed-off-by: Artur Neumann <info@individual-it.net>
* use jqXHR.fail() to check for failuresArtur Neumann2017-04-271-10/+9
| | | Signed-off-by: Artur Neumann <info@individual-it.net>
* refactor to make it easier to testArtur Neumann2017-04-181-45/+50
| | | Signed-off-by: Artur Neumann <info@individual-it.net>
* validate file name before uploading in upload only folderArtur Neumann2017-04-051-1/+8
| | | | | fixes #4211 Signed-off-by: Artur Neumann <info@individual-it.net>
* Always enable avatarsMorris Jobke2017-02-131-1/+1
| | | | | | | | | * we introduced this setting in the begining because our avatar support caused some performance issues, but we fixed them and should only provide one way how Nextcloud looks Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixes files_drop when avatars are disabledRoeland Jago Douma2016-11-131-1/+1
| | | | | | Fixes: #2080 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix public files_drop pageRoeland Jago Douma2016-10-241-15/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make files_drop workRoeland Jago Douma2016-10-241-7/+33
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* smaller files drop fixesArthur Schiwon2016-06-111-2/+31
| | | | | | * fix infinite spinner on blacklisted files * move HTML to template * indentation
* Add text about uploaded filesLukas Reschke2016-06-101-1/+12
|
* Add some error handlingLukas Reschke2016-06-091-4/+20
|
* Make uploading possible via select and cleanup CSSLukas Reschke2016-06-091-8/+17
|
* Add fancy layoutLukas Reschke2016-06-091-0/+45