]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update file actions for newly created files
authorVincent Petry <pvince81@owncloud.com>
Thu, 17 Oct 2013 10:16:47 +0000 (12:16 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 17 Oct 2013 10:20:04 +0000 (12:20 +0200)
The commit d53b603b8259e9c9fe498b4bd50b4dbedc0bf01b for the backport
didn't contain code for the case where new files were created.
This is because that code already existed in OC6 as part of another fix.

This fix adds the missing call to update the file actions for newly
created files.

apps/files/js/file-upload.js

index d414e4bd500a1e034f30a7ba491aac3ff594723a..0877c6417e69a934ccb46a530626c3e8c5173c14 100644 (file)
@@ -325,6 +325,7 @@ $(document).ready(function() {
                  getMimeIcon(mime,function(path){
                        tr.find('td.filename').attr('style','background-image:url('+path+')');
                  });
+                 FileActions.display(tr.find('td.filename'));
                });
                eventSource.listen('error',function(error){
                  $('#uploadprogressbar').fadeOut();