remove table row in trash bin view after undelete
This commit is contained in:
parent
2c3216266c
commit
76bd0cffce
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ foreach ($list as $file) {
|
|||
if ( !OCA_Trash\Trashbin::restore($file, $filename, $timestamp) ) {
|
||||
$error[] = $filename;
|
||||
} else {
|
||||
$success[$i]['filename'] = $filename;
|
||||
$success[$i]['filename'] = $file;
|
||||
$success[$i]['timestamp'] = $timestamp;
|
||||
$i++;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ $(document).ready(function() {
|
|||
{files:tr.attr('data-file'), dirlisting:tr.attr('data-dirlisting') },
|
||||
function(result){
|
||||
for (var i = 0; i < result.data.success.length; i++) {
|
||||
var row = document.getElementById(result.data.success[i].filename+'.d'+result.data.success[i].timestamp);
|
||||
var row = document.getElementById(result.data.success[i].filename);
|
||||
row.parentNode.removeChild(row);
|
||||
}
|
||||
if (result.status != 'success') {
|
||||
|
@ -69,7 +69,7 @@ $(document).ready(function() {
|
|||
{files:fileslist, dirlisting:dirlisting},
|
||||
function(result){
|
||||
for (var i = 0; i < result.data.success.length; i++) {
|
||||
var row = document.getElementById(result.data.success[i].filename+'.d'+result.data.success[i].timestamp);
|
||||
var row = document.getElementById(result.data.success[i].filename);
|
||||
row.parentNode.removeChild(row);
|
||||
}
|
||||
if (result.status != 'success') {
|
||||
|
|
Loading…
Reference in a new issue