From d53b603b8259e9c9fe498b4bd50b4dbedc0bf01b Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 14 Oct 2013 10:09:52 +0200 Subject: [PATCH] File actions are now updated after create/upload file The file actions must explicitly be updated by calling FileActions.display() on the file element after creating or uploading a file. Backport of e98ea06890e87a67f2ae501b7daa55882d1d3a03 for #4971 and #4993 --- apps/files/js/file-upload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 402dd5075e7..d414e4bd500 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -260,6 +260,7 @@ $(document).ready(function() { getMimeIcon(result.data.mime,function(path){ tr.find('td.filename').attr('style','background-image:url('+path+')'); }); + FileActions.display(tr.find('td.filename')); } else { OC.dialogs.alert(result.data.message, t('core', 'Error')); } -- 2.39.5