From 00066cbeaf81185a34f5c2a660cef54ff5737487 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 27 Jul 2022 14:29:26 +0200 Subject: [PATCH] Remove more legacy ids Remove more unused legacy ids from early ownCloud times. This reduces the number of duplicate ids in the DOM. Signed-off-by: Vincent Petry --- apps/files/js/filelist.js | 2 +- apps/files/js/files.js | 3 --- apps/files/templates/list.php | 1 - apps/files/tests/js/fileUploadSpec.js | 2 +- apps/files/tests/js/filelistSpec.js | 2 +- apps/files_sharing/js/public.js | 1 - 6 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 4fbf1ac4a25..1530787b83a 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2475,7 +2475,7 @@ * @param show true for enabling, false for disabling */ showActions: function(show){ - this.$el.find('.actions,#file_action_panel').toggleClass('hidden', !show); + this.$el.find('.actions').toggleClass('hidden', !show); if (show){ // make sure to display according to permissions var permissions = this.getDirectoryPermissions(); diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 5f00ce2cb22..1aa39eab523 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -306,9 +306,6 @@ initialize: function() { Files.bindKeyboardShortcuts(document, $); - // TODO: move file list related code (upload) to OCA.Files.FileList - $('#file_action_panel').attr('activeAction', false); - // drag&drop support using jquery.fileupload // TODO use OC.dialogs $(document).bind('drop dragover', function (e) { diff --git a/apps/files/templates/list.php b/apps/files/templates/list.php index 1b45129195b..13583c23cbf 100644 --- a/apps/files/templates/list.php +++ b/apps/files/templates/list.php @@ -3,7 +3,6 @@
-