diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-05 07:37:08 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-05 07:37:08 +0200 |
commit | 193b9c9386eee28bc5d96e7c6c638803b517ba5c (patch) | |
tree | 3995414c6ca0e58ad491d856d9109001655376f1 /files/js/filelist.js | |
parent | 01cecc8388179e1b6b8f759c4d717848f191eb25 (diff) | |
download | nextcloud-server-193b9c9386eee28bc5d96e7c6c638803b517ba5c.tar.gz nextcloud-server-193b9c9386eee28bc5d96e7c6c638803b517ba5c.zip |
styled undo file deletion
Diffstat (limited to 'files/js/filelist.js')
-rw-r--r-- | files/js/filelist.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js index b4d0adf982c..8fd3bceafb1 100644 --- a/files/js/filelist.js +++ b/files/js/filelist.js @@ -168,9 +168,8 @@ FileList={ procesSelection(); FileList.deleteCanceled=false; FileList.deleteFiles=files; - $('#notification').text(files.length+' file'+((files.length>1)?'s':'')+' deleted, click here to undo'); - - $('#notification').show(); + $('#notification').text('undo deletion'); + $('#notification').fadeIn(); }, finishDelete:function(ready,sync){ if(!FileList.deleteCanceled && FileList.deleteFiles){ @@ -181,7 +180,7 @@ FileList={ data: "dir="+$('#dir').val()+"&files="+encodeURIComponent(fileNames), complete: function(data){ boolOperationFinished(data, function(){ - $('#notification').hide(); + $('#notification').fadeOut(); $.each(FileList.deleteFiles,function(index,file){ // alert(file); FileList.remove(file); @@ -199,9 +198,10 @@ FileList={ } $(document).ready(function(){ + $('#notification').hide(); $('#notification').click(function(){ FileList.deleteCanceled=true; - $('#notification').hide(); + $('#notification').fadeOut(); $.each(FileList.deleteFiles,function(index,file){ $('tr[data-file="'+file+'"]').show(); // alert(file); |