summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-19 17:00:54 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-19 17:00:54 +0200
commit7e0631b3b81a5669620122964d0326ead187de30 (patch)
tree9370b9d5ac99f148d2bc724f76c805b772af7d2d /apps/files/js/fileactions.js
parent98ff8478301676c99ffefd5756ad22466dfb6acf (diff)
parentbd5cb1d801a16933b7b75af5c514caec2afa5fef (diff)
downloadnextcloud-server-7e0631b3b81a5669620122964d0326ead187de30.tar.gz
nextcloud-server-7e0631b3b81a5669620122964d0326ead187de30.zip
Merge branch 'master' into fix_3728_with_file_exists_dialog
Conflicts: apps/files/js/filelist.js
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index af7c757276e..67d3d5ead8d 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -68,6 +68,9 @@ var FileActions = {
if ($('tr[data-file="'+file+'"]').data('renaming')) {
return;
}
+
+ // recreate fileactions
+ parent.children('a.name').find('.fileactions').remove();
parent.children('a.name').append('<span class="fileactions" />');
var defaultAction = FileActions.getDefault(FileActions.getCurrentMimeType(), FileActions.getCurrentType(), FileActions.getCurrentPermissions());
@@ -117,6 +120,8 @@ var FileActions = {
addAction('Share', actions.Share);
}
+ // remove the existing delete action
+ parent.parent().children().last().find('.action.delete').remove();
if (actions['Delete']) {
var img = FileActions.icons['Delete'];
if (img.call) {