FIXED: BUG-30: when restoring, the OK button is red not green in dbox, added new BUG-32: sometimes still getting extra directories in Bin, that just have a trailing slash (or 2 or 3, etc.)

This commit is contained in:
2021-06-12 16:36:40 +10:00
parent 630b455bc0
commit 471ed3c972
2 changed files with 10 additions and 7 deletions

2
BUGs
View File

@@ -1,4 +1,4 @@
### Next: 32
BUG-29: when delete/restore from search view the popup shows a path icon - in wrong spot, move it or lose it
BUG-30: when restoring, the OK button is red not green in dbox
BUG-31: can post move/del DBoxes without highlighted files/content
BUG-32: sometimes still getting extra directories in Bin, that just have a trailing slash (or 2 or 3, etc.)

View File

@@ -245,14 +245,17 @@ function DelDBox(del_or_undel)
<button onClick="$('#dbox').modal('hide'); $.ajax({ type: 'POST', url:
`
if( del_or_undel == "Delete" )
div+="'/delete_files', "
else
div+="'/restore_files', "
div+=`
data: to_del,
div+=`
'/delete_files',
success: function(data){ window.location='/'; return false; } })" class="btn btn-outline-danger col-lg-2">Ok</button>
</div>
`
`
else
div+=`
'/restore_files',
success: function(data){ window.location='/'; return false; } })" class="btn btn-outline-success col-lg-2">Ok</button>
</div>
`
$('#dbox-content').html(div)
$('#dbox').modal('show')
}