nextcloud/apps/files_sharing
Daniel Calviño Sánchez b68bad45dc Update the whole file item instead of only its contents
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>
2017-08-27 18:37:43 +02:00
..
ajax only use one kind of hack for the storage wrappers of the sharing code 2016-11-16 19:04:47 +01:00
appinfo Fix the share type of guest shares when migrating from ownCloud 2017-05-12 09:38:48 +02:00
css Fix working icon placement on password save 2017-04-24 11:50:06 +02:00
img Svgo optimization 2016-09-27 20:56:26 +02:00
js Update the whole file item instead of only its contents 2017-08-27 18:37:43 +02:00
l10n [tx-robot] updated from transifex 2017-08-25 00:09:08 +00:00
lib Catch exceptions on error of cloud id resolution 2017-08-16 13:57:30 +02:00
templates Change id to class in the main share template 2017-08-14 22:24:00 +02:00
tests Backport of #5384 to stable12 2017-06-15 19:23:31 +02:00
list.php Fix apps/ 2016-07-21 18:13:57 +02:00
public.php Fix apps/ 2016-07-21 18:13:57 +02:00