diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-19 17:00:54 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-19 17:00:54 +0200 |
commit | 7e0631b3b81a5669620122964d0326ead187de30 (patch) | |
tree | 9370b9d5ac99f148d2bc724f76c805b772af7d2d /apps/files/js/fileactions.js | |
parent | 98ff8478301676c99ffefd5756ad22466dfb6acf (diff) | |
parent | bd5cb1d801a16933b7b75af5c514caec2afa5fef (diff) | |
download | nextcloud-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.js | 5 |
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) { |