aboutsummaryrefslogtreecommitdiffstats
path: root/files/js/fileactions.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-04 00:22:44 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-04 00:22:44 +0200
commite209511f86ec33222f92c80db1c59c3305bef9d5 (patch)
tree3907d4138ea3450c767e00e530f6446f02c28471 /files/js/fileactions.js
parent4851a55c1d6824a0c46636f7a8749ad2418e1b4a (diff)
downloadnextcloud-server-e209511f86ec33222f92c80db1c59c3305bef9d5.tar.gz
nextcloud-server-e209511f86ec33222f92c80db1c59c3305bef9d5.zip
provide undo button when deleting files from the web interface
Diffstat (limited to 'files/js/fileactions.js')
-rw-r--r--files/js/fileactions.js24
1 files changed, 1 insertions, 23 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js
index 359e54dda3c..a8de2f9977b 100644
--- a/files/js/fileactions.js
+++ b/files/js/fileactions.js
@@ -118,29 +118,7 @@ FileActions.register('all','Download',OC.imagePath('core','actions/download'),fu
});
FileActions.register('all','Delete',OC.imagePath('core','actions/delete'),function(filename){
- $( "#delete-confirm" ).dialog({
- resizable: false,
- height:200,
- title:"Delete "+filename,
- modal: true,
- buttons: {
- "Delete": function() {
- $( this ).dialog( "close" );
- $.ajax({
- url: 'ajax/delete.php',
- data: "dir="+encodeURIComponent($('#dir').val())+"&file="+encodeURIComponent(filename),
- complete: function(data){
- boolOperationFinished(data, function(){
- FileList.remove(filename);
- });
- }
- });
- },
- Cancel: function() {
- $( this ).dialog( "close" );
- }
- }
- });
+ FileList.delete(filename);
});
FileActions.register('all','Rename',OC.imagePath('core','actions/rename'),function(filename){