Fixes a bug where if one tries to delete a file, then clicks undo, and then tries to delete the file again, no questions or undo options were presented.
Essentially, just set FileLists.lastAction = null when one clicks undo.
This commit is contained in:
parent
61c7700ce6
commit
24a207a8fa
|
@ -298,6 +298,7 @@ $(document).ready(function(){
|
|||
});
|
||||
FileList.deleteCanceled=true;
|
||||
FileList.deleteFiles=null;
|
||||
FileList.lastAction = null;
|
||||
} else if (FileList.replaceOldName && FileList.replaceNewName) {
|
||||
$('tr').filterAttr('data-file', FileList.replaceOldName).show();
|
||||
FileList.replaceCanceled = true;
|
||||
|
|
Loading…
Reference in New Issue