]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix trashbin file actions 10615/head
authorRobin Appelman <robin@icewind.nl>
Thu, 9 Aug 2018 12:31:02 +0000 (14:31 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 9 Aug 2018 12:31:02 +0000 (14:31 +0200)
Fixes #10491

Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_trashbin/js/app.js

index 5c29c1232bb716bdd2bffac9ea9a71fd86de5fdf..7cdc157fe4773ac79da00b1cf119d72b93565da6 100644 (file)
@@ -67,7 +67,6 @@ OCA.Trashbin.App = {
                                var tr = fileList.findFileEl(filename);
                                var deleteAction = tr.children("td.date").children(".action.delete");
                                deleteAction.removeClass('icon-delete').addClass('icon-loading-small');
-                               fileList.disableActions();
                                $.post(OC.filePath('files_trashbin', 'ajax', 'undelete.php'), {
                                                files: JSON.stringify([filename]),
                                                dir: fileList.getCurrentDirectory()
@@ -96,7 +95,6 @@ OCA.Trashbin.App = {
                                var tr = fileList.findFileEl(filename);
                                var deleteAction = tr.children("td.date").children(".action.delete");
                                deleteAction.removeClass('icon-delete').addClass('icon-loading-small');
-                               fileList.disableActions();
                                $.post(OC.filePath('files_trashbin', 'ajax', 'delete.php'), {
                                                files: JSON.stringify([filename]),
                                                dir: fileList.getCurrentDirectory()