nextcloud/apps/files_sharing
Daniel Calviño Sánchez c70688e5d0 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-18 14:26:15 +02:00
..
appinfo Use proper methods for registerBackend 2017-08-15 11:29:15 +02:00
css Add filename and sharer in public page 2017-07-21 18:55:37 +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-18 14:26:15 +02:00
l10n [tx-robot] updated from transifex 2017-08-17 00:08:14 +00:00
lib Merge pull request #6130 from nextcloud/cleanup-unused-methods 2017-08-16 08:55:06 +02:00
templates Logo claim is not used anymore 2017-08-02 23:08:45 +02:00
tests Cleanup unused methods 2017-08-15 14:29:26 +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