server/apps/files_sharing/js
Daniel Calviño Sánchez 313b824dd7 Replace fileName variable with data.files[0].name
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>
2017-08-18 15:14:32 +02:00
..
additionalScripts.json Combine additional files_sharing scripts 2017-03-24 10:58:11 +01:00
app.js Fix AdBlock blocking share icon, ref #866 2017-04-12 15:04:12 +02:00
authenticate.js
files_drop.js Replace fileName variable with data.files[0].name 2017-08-18 15:14:32 +02:00
public.js fix 'add to your nextcloud' input field, this is not an email address 2017-06-13 17:46:46 +02:00
share.js Fix share indicator handling 2017-04-26 13:38:12 +02:00
sharebreadcrumbview.js Fix AdBlock blocking share icon, ref #866 2017-04-12 15:04:12 +02:00
sharedfilelist.js share api expanded by tags (#26583) 2017-04-11 11:54:13 -05:00
sharetabview.js refactor share permission logic into own method to reuse it for the share tab 2016-11-07 14:58:45 +01:00