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:
Juan Carlos Cornejo 2012-08-22 16:56:00 -04:00
parent 61c7700ce6
commit 24a207a8fa
1 changed files with 1 additions and 0 deletions

View File

@ -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;