Merge pull request #10615 from nextcloud/fix-trashbin-actions
Fix trashbin file actions
This commit is contained in:
commit
80dd312e74
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue