summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJuan Carlos Cornejo <jc2@paintblack.com>2012-08-22 16:56:00 -0400
committerJuan Carlos Cornejo <jc2@paintblack.com>2012-08-22 16:56:00 -0400
commit24a207a8facea698ec445beaf9271419145e152b (patch)
tree8bd39ea9fb91540260ded7b7465d2b8cf3f7903a /apps/files/js
parent61c7700ce61772bce30791705625022e162b7cd7 (diff)
downloadnextcloud-server-24a207a8facea698ec445beaf9271419145e152b.tar.gz
nextcloud-server-24a207a8facea698ec445beaf9271419145e152b.zip
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.
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6ba3f3555ea..d93781c47f9 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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;