Fix trashbin file actions

Fixes #10491

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-08-09 14:31:02 +02:00
parent 11e99859ef
commit 16909f04c2
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 0 additions and 2 deletions

View File

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